This message was deleted.
# automation-api
s
This message was deleted.
s
Found it you have to instantiate a Workspace by passing it the same working directory then call
Copy code
LocalWorkspace aPulumiWorkspace = await LocalWorkspace.CreateAsync(new LocalWorkspaceOptions() { WorkDir = path });

var StackArgs = new LocalProgramArgs("StackName", path);
            this.Stack = await LocalWorkspace.CreateOrSelectStackAsync(StackArgs);

aPulumiWorkspace .RemoveStackAsync("StackName")
b
This looks like something I’ll need pretty soon. Thanks for sharing!