public function delete($filename)
    {
        $this->request->allowMethod(['post', 'delete']);
        $this->BackupManager->delete($this->getFilename($filename));
        $this->Flash->success(I18N_OPERATION_OK);

        return $this->redirect(['action' => 'index']);
    }
public function delete($filename)
    {
        $this->request->allowMethod(['post', 'delete']);
        $this->BackupManager->delete($this->getFilename($filename));
        $this->Flash->success(I18N_OPERATION_OK);

        return $this->redirect(['action' => 'index']);
    }
public function delete ( $ filename ) { $ this -> request -> allowMethod ( [ 'post' , 'delete' ] ) ; $ this -> BackupManager -> delete ( $ this -> getFilename ( $ filename ) ) ; $ this -> Flash -> success ( I18N_OPERATION_OK ) ; return $ this -> redirect ( [ 'action' => 'index' ] ) ; }
Deletes a backup file
@param string $filename Backup filename
@return \Cake\Network\Response|null
@uses DatabaseBackup\Utility\BackupManager::delete()
@uses getFilename()
Deletes a backup file