Cancels an event.
After cancellation, registration for an event is closed. To reuse the event, clone and publish it again. If event cancellation notifications are enabled, canceling an event automatically triggers the sending of cancellation emails and/or push notifications to registered guests.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
Event ID.
Optional fields.