Skip to main content

Delete

Delete a machine.

The controller removes the key of the machine and each record of it. Unlike revoke, it keeps no record, so a machine that asks again is new. Use it before a machine is rebuilt or removed.

osapi client admission delete [flags]

Examples​

osapi client admission delete --machine-id d530664edc1c431eb5ef1e9dfd6617a5

Permission​

It needs the admission:write permission. osapi token roles get --name <role> shows what a role grants.

Flags​

FlagDescriptionDefault
--machine-idThe machine ID of the node (required)

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file/etc/osapi/osapi.yaml
--urlURL the client will connect tohttp://0.0.0.0:8080

Output tells how the result is printed, and what --json gives.