1
1
1katerina92019-03-07 13:19:06
1C-Bitrix
1katerina9, 2019-03-07 13:19:06

Is it possible to delete an infoblock by XML_ID?

How to delete or update by foreign key (XML_ID) through the CIBlockElement class?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2019-03-07
@1katerina9

Get element ID by XML_ID and delete/update by ID.
Done right, this should be a fairly cheap operation.

K
Kirill Proger, 2019-03-15
@freekirill

CIBlockElement - works with infoblock elements, it is impossible to delete the infoblock itself through it.
If you need to delete elements, then CIBlockElement::Delete($ELEMENT_ID) $ELEMENT_ID can be obtained through filtering by the property you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question