Delete
This class has been deprecated. It's recommended to use methods of class Bitrix\Sale\Location.
bool CSaleLocation::Delete( int ID );
The method Delete deletes the existing location. The method also deletes the location city, the location country (if the latter is not a member of any other location). All links of the deleted location to location groups and delivery services are also deleted.
Parameters
Parameter | Description |
---|---|
ID | The location ID to be deleted. |
Returned values
Returns true on success, or false otherwise.
Example
<? if (!CSaleLocation::Delete(12)) echo "Error deleting location"; ?>
© «Bitrix24», 2001-2024