94 $connection = Main\Application::getConnection();
95 $helper = $connection->getSqlHelper();
97 return $connection->query(sprintf(
98 'DELETE FROM %s WHERE CODE = %s AND CREATED_AT <= %s',
100 $helper->convertToDbString($providerCode),
101 $helper->convertToDbDateTime($dateTo)