When removing an object from local view pressing M you get a pop-up asking to confirm the operation.
Is already possible to remove the pop-up, or maybe it should not be there at all. Seems like a very specific operation and doing it by mistake would not be a problem since undo works with it.