import click

from globus_cli.parsing import common_options, endpoint_id_arg
from globus_cli.helpers import print_json_response

from globus_cli.services.transfer import get_client


@click.command('delete', help=('Delete an access control rule, removing '
                               'permissions'))
@common_options
@endpoint_id_arg
@click.argument('rule_id')
def delete_command(endpoint_id, rule_id):
    """
    Executor for `globus endpoint permission delete`
    """
    client = get_client()

    res = client.delete_endpoint_acl_rule(endpoint_id, rule_id)

    print_json_response(res)

@@ -7,16 +7,56 @@
  click%0A%0A
+from globus_cli.safeio import safeprint%0A
 from glo
@@ -160,16 +160,35 @@
 response
+, outformat_is_json
 %0A%0Afrom g
@@ -627,29 +627,105 @@
     
-print_json_response(res
+if outformat_is_json():%0A        print_json_response(res)%0A    else:%0A        safeprint(res%5B'message'%5D
 )%0A

Add textmode output to the ACL delete command