public function delete($id): ?int
  {
    return $this->db->delete($this->class_cfg['table'], [$this->fields['id'] => $id]);
  }
public function delete($id): ?int
  {
    return $this->db->delete($this->class_cfg['table'], [$this->fields['id'] => $id]);
  }
public function delete ( $ id ) : ? int { return $ this -> db -> delete ( $ this -> class_cfg [ 'table' ] , [ $ this -> fields [ 'id' ] => $ id ] ) ; }
Deletes the given permission

@param $id
@return int|null
Deletes the given permission