def METHOD_NAME(
    name,
    user=None,
    maintenance_db=None,
    db_user=None,
    db_password=None,
    db_host=None,
    db_port=None,
):
    """
    Ensure that the named tablespace is absent.
    name
        The name of the tablespace to remove
    user
        System user all operations should be performed on behalf of
    maintenance_db
        Database to act on
    db_user
        Database username if different from config or default
    db_password
        User password if any password for a specified user
    db_host
        Database host if different from config or default
    db_port
        Database port if different from config or default
    """
    ret = {"name": name, "changes": {}, "result": True, "comment": ""}
    db_args = {
        "maintenance_db": maintenance_db,
        "runas": user,
        "host": db_host,
        "user": db_user,
        "port": db_port,
        "password": db_password,
    }
    # check if tablespace exists and remove it
    if __salt__["postgres.tablespace_exists"](name, **db_args):
        if __opts__["test"]:
            ret["result"] = None
            ret["comment"] = "Tablespace {} is set to be removed".format(name)
            return ret
        if __salt__["postgres.tablespace_remove"](name, **db_args):
            ret["comment"] = "Tablespace {} has been removed".format(name)
            ret["changes"][name] = "Absent"
            return ret
    # fallback
    ret["comment"] = "Tablespace {} is not present, so it cannot be removed".format(
        name
    )
    return ret