Skip to content

Delete schedule

DELETE
/api/v1/schedules/{id}
Code sample: cURL
curl -X DELETE 'https://api.justcrawl.io/api/v1/schedules/sch_01ABC' \
-H 'Authorization: Bearer $JUSTCRAWL_API_KEY'

Permanently removes an ordinary schedule; no future occurrences fire. Accepted BatchJobRuns and their jobs survive. Legacy schedule-run history and jobs linked through that history retain their existing deletion cascade. A schedule bound to a recurring dataset agent returns recurring_agent_schedule (409); stop or change the agent first. To temporarily disable, use PATCH /api/v1/schedules/{id}/toggle with isEnabled: false.

id
required
string

Schedule deleted.

Missing or invalid authentication token

Media typeapplication/json
object
error
string
Example
{
"error": "Missing or invalid authentication token"
}

Insufficient permissions for this operation

Media typeapplication/json
object
error
string
Example
{
"error": "No organization. Complete onboarding first."
}

Schedule not found.

Operation conflicts with current resource state

Media typeapplication/json
object
error
string
Example
{
"error": "Resource already exists"
}

Unexpected server error. Logs and PostHog $exception capture

Media typeapplication/json
object
error
string
Example
{
"error": "Something went wrong"
}