Skip to main content

Delete

Delete NTP configuration by removing the drop-in file from /etc/chrony/conf.d/. Chrony is reloaded after removal. The system falls back to whatever other chrony configuration remains:

$ osapi client node ntp delete --target web-01

Job ID: 550e8400-e29b-41d4-a716-446655440000

HOSTNAME STATUS CHANGED
web-01 changed true

1 host: 1 changed

If the configuration does not exist, changed: false is returned:

$ osapi client node ntp delete --target web-01

Job ID: 550e8400-e29b-41d4-a716-446655440000

HOSTNAME STATUS CHANGED
web-01 ok false

1 host: 1 ok

Broadcast to all hosts:

$ osapi client node ntp delete --target _all

Job ID: 550e8400-e29b-41d4-a716-446655440000

HOSTNAME STATUS CHANGED
web-01 changed true
web-02 changed true

2 hosts: 2 changed

JSON Output

Use --json to get the full API response:

$ osapi client node ntp delete --target web-01 --json
{"results":[{"hostname":"web-01","changed":true,"status":"ok"}],"job_id":"..."}

Flags

FlagDescriptionDefault
-T, --targetTarget: _any, _all, hostname, or label (group:web)_any
-j, --jsonOutput raw JSON response