original_docstring: 
      Delete a keypair resource policy.
  
      NAME: NAME of a keypair resource policy to delete.
      
docstring: Delete a keypair resource policy.
  NAME: NAME of a keypair resource policy to delete.
docstring_tokens: Delete a keypair resource policy . NAME : NAME of a keypair resource policy to delete .
code: def delete(name):
      """
      Delete a keypair resource policy.
  
      NAME: NAME of a keypair resource policy to delete.
      """
      with Session() as session:
          if not ask_yn():
              print_info('Cancelled.')
              sys.exit(1)
          try:
              data = session.KeypairResourcePolicy.delete(name)
          except Exception as e:
              print_error(e)
              sys.exit(1)
          if not data['ok']:
              print_fail('KeyPair Resource Policy deletion has failed: {0}'
                         .format(data['msg']))
              sys.exit(1)
          print_done('Resource policy ' + name + ' is deleted.')
code_tokens: def delete ( name ) : with Session ( ) as session : if not ask_yn ( ) : print_info ( 'Cancelled.' ) sys . exit ( 1 ) try : data = session . KeypairResourcePolicy . delete ( name ) except Exception as e : print_error ( e ) sys . exit ( 1 ) if not data [ 'ok' ] : print_fail ( 'KeyPair Resource Policy deletion has failed: {0}' . format ( data [ 'msg' ] ) ) sys . exit ( 1 ) print_done ( 'Resource policy ' + name + ' is deleted.' )
short_docstring: Delete a keypair resource policy.
short_docstring_tokens: Delete a keypair resource policy .
comment: """
      Delete a keypair resource policy.
  
      NAME: NAME of a keypair resource policy to delete.
      """