Bitrix Site Manager

CSaleLocation::DeleteCity

bool
CSaleLocation::DeleteCity(
  int ID
);

The method DeleteCity deletes the existing city. Location to which this city is bound is not changed.

Parameters

ParameterDescription
ID The ID of the city to be deleted.

Return Values

Returns true on success, or false otherwise.

Example



<?
if (!CSaleLocation::DeleteCity(12))
   echo "Error deleting city";
?>