Deleting a document marks it as no longer being displayed. The document management system does not remove the document entirely, and it can be restored at a later stage.
{assign var=iDocumentId value=$context->oDocument->getId()}If you do not intend to delete this document, you should cancel the deletion.