delete_document method