create delete method for BaseController