def stop_instance(self, instance_id):
        """Stops the instance gracefully.

        :param str instance_id: instance identifier
        """
        instance = self._load_instance(instance_id)
        instance.delete()
        del self._instances[instance_id]
def stop_instance ( self , instance_id ) : instance = self . _load_instance ( instance_id ) instance . delete ( ) del self . _instances [ instance_id ]
Stops the instance gracefully.

        :param str instance_id: instance identifier