def METHOD_NAME(self, dry_run=False):
    """
    Delete the KeyPair.
    :rtype: bool
    :return: True if successful, otherwise False.
    """
    return self.connection.delete_key_pair(self.name, dry_run=dry_run)