• Модуль: clouds
  • Путь к файлу: ~/bitrix/modules/clouds/lib/filehash.php
  • Класс: BitrixCloudsFileHashTable
  • Вызов: FileHashTable::deleteByFilePath
static function deleteByFilePath($bucketId, $filePath)
{
	$bucketId = intval($bucketId);
	$connection = BitrixMainApplication::getConnection();
	$sqlHelper = $connection->getSqlHelper();
	$delete = '
		DELETE from ' . static::getTableName() . '
		WHERE BUCKET_ID = ' . $bucketId . "
		AND FILE_PATH = '" . $sqlHelper->forSql($filePath) . "'
	";
	$result = $connection->query($delete);
	return $result;
}