code: def delete_key_pair(name, profile, **libcloud_kwargs):
      '''
      Delete a key pair
  
      :param name: Key pair name.
      :type  name: ``str``
  
      :param profile: The profile key
      :type  profile: ``str``
  
      :param libcloud_kwargs: Extra arguments for the driver's import_key_pair_from_xxx method
      :type  libcloud_kwargs: ``dict``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion libcloud_compute.delete_key_pair pair1 profile1
      '''
      conn = _get_driver(profile=profile)
      libcloud_kwargs = salt.utils.args.clean_kwargs(**libcloud_kwargs)
      key = conn.get_key_pair(name)
      return conn.delete_key_pair(key, **libcloud_kwargsf delete_key_pair(name, profile, **libcloud_kwargs):
      '''
      Delete a key pair
  
      :param name: Key pair name.
      :type  name: ``str``
  
      :param profile: The profile key
      :type  profile: ``str``
  
      :param libcloud_kwargs: Extra arguments for the driver's import_key_pair_from_xxx method
      :type  libcloud_kwargs: ``dict``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion libcloud_compute.delete_key_pair pair1 profile1
      '''
      conn = _get_driver(profile=profile)
      libcloud_kwargs = salt.utils.args.clean_kwargs(**libcloud_kwargs)
      key = conn.get_key_pair(name)
      return conn.delete_key_pair(key, **libcloud_kwargs)
docs: Delete a key pair
  
      :param name: Key pair name.
      :type  name: ``str``
  
      :param profile: The profile key
      :type  profile: ``str``
  
      :param libcloud_kwargs: Extra arguments for the driver's import_key_pair_from_xxx method
      :type  libcloud_kwargs: ``dict``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion libcloud_compute.delete_key_pair pair1 profile1