ws-creator purge
Deletes the distro (confirmed by typing its name). No partial purge: cloud-init removes nothing, so purge, then recreate (immutable infrastructure). Refuses while unpushed work remains, unless -Force. Get-Help Remove-WsCreatorMachine -Full
Syntax
Section titled “Syntax”Remove-WsCreatorMachine [-Name] <String> [-Apply] [-Force]Parameters
Section titled “Parameters”| Parameter | Type | Required | Position | Description |
|---|---|---|---|---|
-Name |
String | true | 1 | The machine: folder <WS_CREATOR_MACHINES>\<Name>\, and the distro of the same name. |
-Apply |
SwitchParameter | false | named | Do it. Without it, only shows the steps (dry run). |
-Force |
SwitchParameter | false | named | Purge despite unpushed work (“!” lines). |
Examples
Section titled “Examples”ws-creator purge my-machine -Apply