public function Delete($DiscussionID, $Target = '') {
      $Discussion = $this->DiscussionModel->GetID($DiscussionID);
      
      if (!$Discussion)
         throw NotFoundException('Discussion');
      
      $this->Permission('Vanilla.Discussions.Delete', TRUE, 'Category', $Discussion->PermissionCategoryID);
      
      if ($this->Form->IsPostBack()) {
         if (!$this->DiscussionModel->Delete($DiscussionID))
            $this->Form->AddError('Failed to delete discussion');
         
         if ($this->Form->ErrorCount() == 0) {
            if ($this->_DeliveryType === DELIVERY_TYPE_ALL)
               Redirect($Target);

            if ($Target)
               $this->RedirectUrl = Url($Target);
            
            $this->JsonTarget(".Section-DiscussionList #Discussion_$DiscussionID", NULL, 'SlideUp');
         }
      }
      
      $this->SetData('Title', T('Delete Discussion'));
      $this->Render();         
   }