cURL
curl --request POST \ --url https://api.example.com/api/schedule/schedules.delete \ --header 'Content-Type: application/json' \ --data ' { "ids": [ "872815618512410358" ], "options": { "group_action": "single", "allow_partial": true } } '
{ "deleted_count": 123, "deleted": {}, "failed_count": 123, "failed": {} }
If you provide ‘all’ or ‘future’ as group action and if you allow it through ‘allow_partial=true’, only the schedules that come after team’s lock date (if it exists) will be deleted.
Show child attributes
Schedule(s) deleted. When options.allow_partial is true, some schedules might not be deleted due to lock dates or permissions.
Result of deleting schedule(s).