CatalogObject.<Catalog name>.SetDeletionMark

Syntax:

SetDeletionMark(<DeletionMark>, <IncludingSubordinates>)

Parameters:

<DeletionMark> (required)

Type: Boolean.
Deletion mark set / removal flag.
True indicates the mark is set; False indicates the mark is removed.

<IncludingSubordinates> (optional)

Type: Boolean.
If the parameter is set to True, this item will be marked for deletion along with all of its subordinate items, in this catalog and in all subordinate catalogs.
If the parameter is set to False, only this item is marked for deletion.
Default value: True.

Description:

Sets/removes the deletion check. The object isn't deleted from the database. Final deleting of marked catalog items is executed when marked objects are deleted.

Availability:

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

Note:

Use of this method initiates the BeforeWrite event, because the changed property DeletionMark is saved.
If object is modified, then executing the method returns an exception.

Example:

Object.SetDeletionMark(True,True);

    

1C:Enterprise Developer's Community