Handle deletions with folders
Fix Metadata.fid
Delete the metadata after the call to delete_file
Handle moves with folders