start \Bitrix\Sale\OrderHistory::deleteOldAgent("365", "1000000");end