public function on_delete_bundle_snippet($pars)
{
$bundle_id = $this->stripFileName($pars['id']);
$filename = $this->stripFileName($pars['filename']);
$snippets_dir = $this->configuration['support-path'] . '/bundles/' . $bundle_id . '/snippets/';
$snippet_path = $snippets_dir . $filename . '.amSnippet';
if (file_exists($snippet_path)) {
unlink($snippet_path);
unlink($snippet_path . 'Def');
self::setResult(true);
}
self::raiseError('Snippet not found.');
}