It does select from all Layouts, but if you use any native Autocad command on the selection, only the objects in the current space are processed.
You need to program your command to work on all objects.
If you want to delete them, ERASE is not working, (entdel <ename>) is not working, but (vla-delete <vla-object>) will do the trick.