POST

Bulk Delete Services By Filter


Deletes multiple services by filter.

See Delete Service (SDK | REST) for more details about deleting a service.

The call succeeds even if one or more individual services can't be deleted. Information about failures is returned in bulkActionMetadata.

Refer to the supported filters article (REST) for more details.

To learn about working with filters in general, see API Query Language.

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
POST
https://www.wixapis.com/bookings/v2/bulk/services/delete-by-filter

Body Params
filterstructRequired

Filter to identify the services that need to be deleted.


preserveFutureSessionsWithParticipantsboolean

Whether to preserve future sessions with participants.

Default: false.


participantNotificationParticipantNotification

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

Response Object
jobIdstringformat GUID

ID of the service deletion job.

Pass this ID to Get Async Job to retrieve job details and metadata.

Delete all classes
Request
cURL
curl -X POST 'https://www.wixapis.com/bookings/v2/bulk/services/delete-by-filter' \ -H 'Authorization: <AUTH>' \ -d '{ "filter": { "type": "CLASS" }, "preserveFutureSessionsWithParticipants": false, "participantNotification": { "notifyParticipants": true } }'
Response
JSON
{ "jobId": "7cd8f110-b19a-4a4e-9667-507324d49743" }
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?