<?php
$system->error('This feature has been disabled in demo mode') if $system->config('demo');
$system->db->do('DELETE FROM emails WHERE id = ?',undef,$email->id);
$system->db->do('DELETE FROM emails_notices WHERE id = ?',undef,$email->id);
$system->redirect('/admin/emails');
?>