Fixed `Document::delete()`