(self, request, tenant_id, keypairname)
Removes a key by its name.
        http://docs.rackspace.com/servers/api/v2/cs-devguide/content/DeleteKeyPair.html
Removes a key by its name.
        http://docs.rackspace.com/servers/api/v2/cs-devguide/content/DeleteKeyPair.html
Removes a key by its name . http : // docs . rackspace . com / servers / api / v2 / cs - devguide / content / DeleteKeyPair . html
def delete_key_pair(self, request, tenant_id, keypairname):
        """
        Removes a key by its name.
        http://docs.rackspace.com/servers/api/v2/cs-devguide/content/DeleteKeyPair.html
        """
        try:
            self._keypair_collection_for_tenant(
                tenant_id).remove_keypair(keypairname)
        except ValueError:
            request.setResponseCode(404)
            return json.dumps("KeyPair not found: " + keypairname)

        request.setResponseCode(202)
def delete_key_pair ( self , request , tenant_id , keypairname ) : try : self . _keypair_collection_for_tenant ( tenant_id ) . remove_keypair ( keypairname ) except ValueError : request . setResponseCode ( 404 ) return json . dumps ( "KeyPair not found: " + keypairname ) request . setResponseCode ( 202 )