code: def delete_role(query):
      
      role = _query_to_role(query)
      if click.confirm(f'Are you sure you want to delete {role!r}?'):
          role_manager.delete(role, commit=True)
          click.echo(f'Successfully deleted {role!r}')
      else:
          click.echo('Cancelled.')
docs: Delete a role.