Answer the question
In order to leave comments, you need to log in
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
Get element ID by XML_ID and delete/update by ID.
Done right, this should be a fairly cheap operation.
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 questionAsk a Question
731 491 924 answers to any question