docs: def delete_resource(self, session, data, api_type, obj_id):
          """
          Delete a resource.
  
          :param session: SQLAlchemy session
          :param data: JSON data provided with the request
          :param api_type: Type of the resource
          :param obj_id: ID of the resource
          """
          resource = self._fetch_resource(session, api_type, obj_id,
                                          Permissions.VIEW)
          self._check_instance_relationships_for_delete(resource)
  
          session.delete(resource)
          session.commit()
  
          response = JSONAPIResponse()
          response.status_code = 204
  
          return response