public function actionDeleteTemp($filename)
{
$userTempDir = $this->getModule()->getUserDirPath();
$filePath = $userTempDir . DIRECTORY_SEPARATOR . $filename;
unlink($filePath);
if (!sizeof(FileHelper::findFiles($userTempDir))) {
rmdir($userTempDir);
}
Yii::$app->response->format = Response::FORMAT_JSON;
return [];
}