Bitrix Site Manager

CPosting::Delete

CPosting::Delete(
    $ID
);

The method Delete is used to delete an issue by its ID.

Parameters

ParameterDescription
$ID The issue ID.

Return Values

Returns an instance of the CDBResult class on success, or false otherwise.

Example



if(($res = CPosting::Delete($ID)) && $res->AffectedRowsCount() < 1 || $res == false)
    echo "Cannot delete the issue.";
else
    echo "Deleted successfylly.";