Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Delete Service

Developer Preview

Deletes a service

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

Permissions

This endpoint requires the Manage Bookings permission scope.

POST

https://www.wixapis.com/bookings/v1/services/{id}/delete

Path Params

NAME
TYPE
DESCRIPTION
id
Required

string

The Id of the service to delete

Body Params

NAME
TYPE
DESCRIPTION
preserveFutureSessionsWithParticipants

boolean

Whether to preserve future sessions with participants. Optional, default is false.

notifyParticipants
Deprecated

boolean

Whether to notify participants about cancelled sessions due to a service being deleted. Optional, default is false. deprecated, use participant_notification

participantNotification

object

Whether to notify participants about the change and an optional custom message

Response Object

Returns an empty object.

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Delete Service

Delete a service by its Id. Future sessions and related bookings will be deleted as well.

Request

curl

Copy Code
1curl -X POST \
2 'https://www.wixapis.com/bookings/v1/services/4c0bae61-4599-4d02-a2f4-25e9222df416/delete' \
3 -H "Content-Type: application/json" \
4 -H 'Authorization: <AUTH>' \
5 --data '{
6 "preserveFutureSessionsWithParticipants": false
7 }'
8{}

Response

json

1
2{}