applications/vanilla/models/class.draftmodel.php
public function Delete($DraftID) {
      // Get some information about this draft
      $DraftUser = $this->SQL
         ->Select('InsertUserID')
         ->From('Draft')
         ->Where('DraftID', $DraftID)
         ->Get()
         ->FirstRow();
         
      $this->SQL->Delete('Draft', array('DraftID' => $DraftID));
      if (is_object($DraftUser))
         $this->UpdateUser($DraftUser->InsertUserID);

      return TRUE;
   }
public function Delete($DraftID) {
      // Get some information about this draft
      $DraftUser = $this->SQL
         ->Select('InsertUserID')
         ->From('Draft')
         ->Where('DraftID', $DraftID)
         ->Get()
         ->FirstRow();
         
      $this->SQL->Delete('Draft', array('DraftID' => $DraftID));
      if (is_object($DraftUser))
         $this->UpdateUser($DraftUser->InsertUserID);

      return TRUE;
   }
public function Delete ( $ DraftID ) { // Get some information about this draft $ DraftUser = $ this -> SQL -> Select ( 'InsertUserID' ) -> From ( 'Draft' ) -> Where ( 'DraftID' , $ DraftID ) -> Get ( ) -> FirstRow ( ) ; $ this -> SQL -> Delete ( 'Draft' , array ( 'DraftID' => $ DraftID ) ) ; if ( is_object ( $ DraftUser ) ) $ this -> UpdateUser ( $ DraftUser -> InsertUserID ) ; return TRUE ; }
Deletes a specified draft.

This is a hard delete that completely removes it.

@since 2.0.0
@access public

@param int $DraftID Unique ID of the draft to be deleted.
@return bool Always returns TRUE.
Deletes a specified draft .