Skip to main content

DocumentObject._Document name_.Delete

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), mobile standalone server.

Example

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

Translation

Русская версия: ДокументОбъект._Имя документа_.Удалить (DocumentObject._Document name_.Delete)