Skip to main content
DELETE
/
:projectId
/
api
/
v7
/
events
/
:eventId
Delete Event
curl --request DELETE \
  --url https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventId
Deletes an event. Host-only (service/master keys bypass the host check). The event’s child EventRsvps and EventInvites are cleaned up, and—depending on settings—its files. Deletion honors the project’s eventDeletion settings:
  • softDelete (default false) — when true, the event is soft-deleted (a deletedAt timestamp is set) and drops out of listings while the row is retained.
  • preserveFilesOnSoftDelete (default true) — on a soft delete, keep the event’s files. On a hard delete, files are always removed.

Path Parameters

eventId
string
required
UUID of the event to delete.

Response

Returns 204 No Content on success.

Error Responses

{ "error": "Event not found", "code": "event/not-found" }
{ "error": "Only a host of this event may delete it.", "code": "event/forbidden" }
{ "error": "Event not found or already deleted.", "code": "event/delete-failed" }
See also: useDeleteEvent