> For the complete documentation index, see [llms.txt](https://docs.stellic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stellic.com/stellic-partner-api/registration/delete-a-registration-time-ticket.md).

# Delete a registration time ticket

Use this endpoint to remove a ticket, for example one issued in error. The ticket is deleted permanently and stops applying right away. The student can still register if another ticket for the term is open. You can reuse `{registration_time_id}` for a new ticket.

## DELETE /planner/registration/registration\_time/{registration\_time\_id}

>

```json
{"openapi":"3.0.0","info":{"title":"Stellic for Developers","version":"1.0"},"tags":[{"name":"Registration"}],"servers":[{"url":"https://{institution}.stellic.com/partnerapi/v1","variables":{"institution":{"default":"{institution}","description":"Your institution's Stellic subdomain: the part before `.stellic.com` in the URL you use to sign in. It becomes the host in every request, as in `https://{institution}.stellic.com/partnerapi/v1/...`. Replace the `{institution}` placeholder with your subdomain before sending."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Personal Access Token issued by your Stellic integration partner. Send it as `Authorization: Bearer <token>` on every request. One token per institution; do not share across environments."}}},"paths":{"/planner/registration/registration_time/{registration_time_id}":{"delete":{"tags":["Registration"],"parameters":[{"name":"registration_time_id","in":"path","required":true,"description":"The ticket's identifier, as sent when it was created.","schema":{"type":"string"}}],"responses":{"200":{"description":"Time ticket deleted.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"errors":{"type":"array","items":{"type":"string"}}}}}}},"400":{"description":"The ticket could not be deleted. A repeated `DELETE` returns the not-found message.\n\nCommon causes:\n- Ticket not found or already deleted - returns ``Registration Time with id: `{id}` does not exist``\n- Student archived - returns `Cannot delete a Registration Time id = `{id}` that links to a student who is no longer active: `{username}``","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"errors":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"}}}}}}}}},"401":{"description":"Missing or invalid Bearer token."},"403":{"description":"Your IP address isn't on the allowlist for this endpoint. Contact Stellic to add it; the response includes the `client_ip` Stellic saw.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"client_ip":{"type":"string"}}}}}}}}}}}
```

#### Notes

* **Deleting a ticket that doesn't exist returns a 400.** `Registration Time with id: {registration_time_id} does not exist`. Treat that message as success if you retry.
* **Tickets of archived students can't be deleted.** The call returns a 400 that says the student is no longer active.

#### Related APIs

* [`POST /planner/registration/registration_time/{registration_time_id}`](/stellic-partner-api/registration/create-a-registration-time-ticket.md) to create a ticket.
* [`PUT /planner/registration/registration_time/{registration_time_id}`](/stellic-partner-api/registration/update-a-registration-time-ticket.md) to move a ticket's window instead.
