'Delete instance everywhere.  delete_type may be \'soft\'
or \'hard\'.  This is generally only used to resolve races
when API cell doesn\'t know to what cell an instance belongs.'

def instance_delete_everywhere(self, ctxt, instance, delete_type):

    if self.client.can_send_version('1.27'):
        version = '1.27'
    else:
        version = '1.0'
        instance = jsonutils.to_primitive(instance)
    cctxt = self.client.prepare(version=version)
    cctxt.cast(ctxt, 'instance_delete_everywhere', instance=instance, delete_type=delete_type)
