DocumentObject.<Document name>.Delete

Syntax:

Delete()

Description:

Deletes document from the database.
Important: Unlike SetDeletionMark, this method immediately deletes the document permanently without checking referential integrity. This method is to be used with great awareness.

Availability:

Server, thick client, external connection, Mobile application (server).

Example:

QuestionText = "Delete the document leaving no chance to restore?";
Answer = DoQueryBox(QuestionText, QuestionDialogMode.YesNo);
If 
Answer = DialogReturnCode.Yes Then
    ExpenseBill.Delete();
EndIf
;


    

1C:Enterprise Developer's Community