public function deleteAction()
 {
     $theme = waRequest::post('theme_id', 'default');
     $file = waRequest::post('file');
     $theme = new waTheme($theme, $this->getAppId());
     $theme->removeFile($file);
     $theme->save();
     $this->logAction('template_delete', $file);
     $this->displayJson(array());
 }