• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/controller/export.php
  • Класс: BitrixMainControllerExport
  • Вызов: Export::cancelAction
public function cancelAction()
{
	$this->processToken = null;
	$this->isNewProcess = true;

	$this->dropTempFile();

	$this->instanceBucket();

	if ($this->bucket instanceof CCloudStorageBucket)
	{
		if ($this->bucket->FileExists($this->uploadPath))
		{
			if (!$this->bucket->DeleteFile($this->uploadPath))
			{
				$this->addError(new Error('Cloud drop error.'));
			}
		}
	}

	$this->clearProgressParameters();

	$result = $this->preformAnswer(self::ACTION_CANCEL);

	$result['STATUS'] = self::STATUS_COMPLETED;

	return $result;
}