'Remove a snapshot from the backends.'

@profiler.trace('Stack.delete_snapshot', hide_args=False)
def delete_snapshot(self, snapshot):

    for (name, rsrc) in six.iteritems(self.resources):
        snapshot_data = snapshot.data
        if snapshot_data:
            data = snapshot.data['resources'].get(name)
            scheduler.TaskRunner(rsrc.delete_snapshot, data)()
