def resource_deleted(payload=None):
    """Return custom JSON if a resource is deleted

    :param payload: Customize the JSON to return if needed
    :type payload: dict, optional
    :return: A JSON dict with a message
    :rtype: dict
    """
    if payload is not None:
        return payload
    else:
        return {"status": "deleted"}