if exists(name, path=path):
            # destroy the container if it was partially created
            cmd = 'lxc-destroy'
            if path:
                cmd += ' -P {0}'.format(pipes.quote(path))