code: def delete(self, resource_id):
          
          resource = self._resource(resource_id)
          error_message = is_valid_method(self.__model__, resource)
          if error_message:
              raise BadRequestException(error_message)
          db.session().delete(resource)
          db.session().commit()
          return self._no_content_response()
docs: Return an HTTP response object resulting from a HTTP DELETE call.
  
          :param resource_id: The value of the resource's primary key