Strip deleted files from database.