DELETE

Delete Service


Deletes a service.

Specify {"preserveFutureSessionsWithParticipants": true} to retain all future sessions for the service. By default, all future sessions are canceled.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Bookings - all permissions
Manage Bookings
Learn more about app permissions.
Endpoint
DELETE
https://www.wixapis.com/_api/bookings/v2/services/{serviceId}

Path Params
serviceIdstringRequired

ID of the service to delete.

Query Params
preserveFutureSessionsWithParticipantsboolean

Whether to preserve future sessions with participants.

Default: false


participantNotification.notifyParticipantsboolean

Whether to send the message about the changes to the customer.

Default: false


participantNotification.messagestringmaxLength 2000

Custom message to send to the participants about the changes to the booking.

Response Object
Returns an empty object.
Delete a service
Request
cURL
curl -X DELETE 'https://www.wixapis.com/bookings/v2/services/d779a301-398d-4552-aa8c-3bef0b65cedb' \ -H 'Authorization: <AUTH>'
Response
JSON
{}
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?