Delete corrupted documents
Ignore deleted media documents
Locking mechanism