public function on_delete_bundle_command($pars)
{
$bundle_id = $this->stripFileName($pars['id']);
$filename = $this->stripFileName($pars['filename']);
$commands_dir = $this->configuration['support-path'] . '/bundles/' . $bundle_id . '/commands/';
$command_path = $commands_dir . $filename . '.amCommand';
if (file_exists($command_path)) {
unlink($command_path);
unlink($command_path . 'Def');
self::setResult(true);
}
self::raiseError('Command not found.');
}