Bitrix Site Manager

CSite::Delete

mixed
CSite::Delete(
 string id
)

The method Delete deletes a site. The function returns an instance of CDBResult on success, or false otherwise.

Parameters

ParameterDescription
id The ID of the site to be deleted.

See Also

Example



<?
if (CSite::Delete("ru")===false) 
  echo "The site cannot be deleted as bound records are found.";
?>