This endpoint deletes a specific command based on the Command ID.

Sample Request

curl -X DELETE https://console.jumpcloud.com/api/commands/{CommandID} \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}'

Basic Parameters

ParameterDescription
IDThe command ID.

Advanced Parameters

ParameterDescription
Organization IDOrganization identifier that can be obtained from console settings.

Example Output

{
	"_id": "<string>",
	"id": "<string>",
	"name": "<string>",
	"trigger": "<string>",
	"command": "<string>",
	"commandType": "<string>",
	"commandRunners": [],
	"sudo": true,
	"launchType": "<string>",
	"listensTo": "<string>",
	"scheduleRepeatType": "<string>",
	"schedule": "<string>",
	"files": [],
	"timeout": "<string>",
	"organization": "<string>",
	"shell": "<string>",
	"systems": [],
	"timeToLiveSeconds": 53,
	"scheduleYear": 425
}

Workflow Library Example

Delete Command with Jumpcloud and Send Results Via Email

Preview this Workflow on desktop