def delete(self, ws_id, catalogue_id, vnf_id):
        """Deletes a  function

        Deletes a function in the project or catalogue by its id"""

        deleted = catalogue_servicesimpl.delete_service_catalogue(ws_id, catalogue_id, vnf_id, True)
        return prepare_response(deleted)
    def delete(self, ws_id, parent_id, service_id):
        """Delete the Service

        Deletes the service from the Project or Catalogue"""
        if get_parent(request) is Category.project:
            service = servicesimpl.delete_service(parent_id, service_id)
            return prepare_response(service)
        if get_parent(request) is Category.catalogue:
            service = catalogue_servicesimpl.delete_service_catalogue(ws_id, parent_id, service_id, False)
            return prepare_response(service)
        return prepare_response("not yet implemented")
    def delete(self, ws_id, parent_id, vnf_id):
        """Deletes a  function

        Deletes a function in the project or catalogue by its id"""
        if get_parent(request) is Category.project:
            deleted = functionsimpl.delete_function(ws_id, parent_id, vnf_id)
            return prepare_response(deleted)
        if get_parent(request) is Category.catalogue:
            deleted = catalogue_servicesimpl.delete_service_catalogue(ws_id, parent_id, vnf_id, True)
            return prepare_response(deleted)
        # TODO implement for catalog and platform
        return prepare_response("not yet implemented")