Documentation

markDelete

Attention! We strongly recommend first to learn more about Sites module REST documentation to understand how the module functions (with REST available in Bitrix24 Self-hosted editions). View this documentation as useful source when working with Bitrix24 Self-hosted editions and when you want to learn more about API.

public static function Site::markDelete(
   $id,
);

Moves site to recycle bin.

Parameters

ParameterDescriptionVersion
idSite ID.

Attention!Site and page inside recycle bin are deleted automatically after number of days specified in the module settings (30 days by default).

Example

if (\Bitrix\Main\Loader::includeModule('landing'))
{
   $res = \Bitrix\Landing\Site::markDelete(
      1
   );
   if ($res->isSuccess())
   {
      echo 'mark as deleted';
   }
   else
   {
      print_r($res->getErrors());
   }


© «Bitrix24», 2001-2024
Up