I think this is indented behaviour. A user might have filtered the file view by a certain criteria and want to perform multiple changes to the files.
If the files are removed automatically as soon as the filtering criteria isn't matched anymore, the user might have to search the files again to apply further changes.