Bitrix Site Manager

CSaleLocation::Delete

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

ParameterDescription
ID The ID of the location to be deleted.

Return Values

Returns true on success, or false otherwise.

Example



<?
if (!CSaleLocation::Delete(12))
   echo "Error deleting location";
?>