• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/scrum/service/entityservice.php
  • Класс: BitrixTasksScrumServiceEntityService
  • Вызов: EntityService::removeEntity
public function removeEntity(int $id): bool
{
	try
	{
		$result = EntityTable::delete($id);

		if ($result->isSuccess())
		{
			return true;
		}
		else
		{
			$this->setErrors($result, self::ERROR_COULD_NOT_REMOVE_ENTITY);

			return false;
		}
	}
	catch (Exception $exception)
	{
		$this->errorCollection->setError(
			new Error(
				$exception->getMessage(),
				self::ERROR_COULD_NOT_REMOVE_ENTITY
			)
		);

		return false;
	}
}