public static \Bitrix\Tasks\Task\SortingTable::deleteByTaskId( integer $taskId );
This static method deletes task from sort tree.