Safe way to remove accidentally added external objects from an Application container?

Hi all,
During ongoing development, external application contents were accidentally added into a main application container using the add application contents option, significantly inflating the object count with foreign components and shared utilities.
Before proceeding with cleanup, the goal is to confirm whether filtering by foreign prefixes and selecting "Remove from Application" solely detaches the container tag without altering published rules, impacting runtime execution for dependent models, or interfering with active changes in the environment.
Note that there isn't a direct "Remove Application from Application" option available to undo this action in bulk. Any guidance on the safest workflow to prune these bulk-associated objects would be appreciated.
Thanks!
