Delete Event
Deletes an event with its post, guests, meta and queued reminders.
The delete runs in a transaction around fluent_event/event/before_deleted. If a listener throws, or the post cannot be deleted, nothing is removed and the API returns the error. No emails are sent to the guests.
Endpoint
- Method:
DELETE - Path:
/fluent-event/v2/events/{id} - Controller:
EventController@deleteEvent - Route source:
fluent-event/app/Http/Routes/api.php:58 - Controller source:
fluent-event/app/Http/Controllers/EventController.php:168
Permissions
- Requires the
manage_optionscapability (a site administrator). FluentEvent has no separate staff roles: its admin API is for administrators only.
Hooks Fired
Live sample
The request and response below were recorded on a running FluentEvent site and then anonymised. Names, emails and event titles are fictional, and long lists are cut to a few items.
Delete Event
DELETE
/events/{id}
Deletes an event with its post, guests, meta and queued reminders.
Controller: EventController@deleteEvent
Route source: fluent-event/app/Http/Routes/api.php:58
Authorizations
ApplicationPasswords
A WordPress username and an Application Password.
Type
HTTP (basic)
Parameters
Path Parameters
id*
Record ID.
Type
Requiredinteger
Minimum
1Responses
Success
application/json
JSON "message": "string"
{
}