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.
|ID||The location ID to be deleted.|
Returns true on success, or false otherwise.
<? if (!CSaleLocation::Delete(12)) echo "Error deleting location"; ?>