Skip to main content
Delete Event
Deletes an event. Allowed for a host of the event, or an active admin or moderator of the event’s space. A service key acts as the user it names in actingUserId, with that user’s powers. 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

string
required
UUID of the event to delete.

Query Parameters

string
Required with a service key: the user this request acts as. It has exactly that user’s powers, so it is refused unless they are a host of the event, or an active admin or moderator of its space, and it is recorded as theirs. A user token always acts as its own user and must not send it (400 event/acting-user-not-allowed).

Response

Returns 204 No Content on success.

Error Responses

A service key sent no actingUserId.
actingUserId is not a user id.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
The request carried a body. A DELETE takes no body: send actingUserId and every other field in the query string.
Returned when a service key names an actingUserId that isn’t a user in this project.
See also: useDeleteEvent