File stays in Collection after parent deleted

I usually use a command to open, in another tab, the parent of a file selected in a collection, then I move up and delete its directory. When I close that tab and go back to the collection, the file persists there.

I would prefer the file to be removed from the collection. It seems that, if I delete the file alone, it is remove from the collection, but not if I delete its parent (and it by consequence).

Is this by design or perhaps by some limitation? Could it be improved so the file is removed from a collection when its parent is deleted?