def delete_resource(fco_api, res_uuid, res_type, cascade=False):
    """
    Delete a resource.

    :param fco_api: FCO API object
    :param res_uuid: Resource UUID
    :param res_type: Resource type
    :param cascade: Cascade the deletion
    :return: Job-compatible object
    """
    return fco_api.deleteResource(resourceUUID=res_uuid, resourceType=res_type,
                                  cascade=cascade)