allow deleted files

Removed the validation for deleted files — they should appear in the
list of getMetadataWithChildren.
This is the first version, I’ll take the query to another method to be
reusable — as the Python version is for example