[BUGFIX] Can not delete Files with metadata records