Made deleting of tags for files and tags a single query.