Documentation

DeleteCity

This class has been deprecated. It's recommended to use methods of class Bitrix\Sale\Location.

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.

Returned values

Returns true on success, or false otherwise.

Example


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

© «Bitrix24», 2001-2024
Up