Search.../

deleteService( )

Developer Preview

Deletes a service.

Admin Method

This function requires elevated permissions to run. This function is not universal and runs only on the backend.

Authorization

Request

This endpoint does not take any parameters

Response Object

Returns an empty object.

Status/Error Codes

Was this helpful?

Delete a service @description:

Copy Code
1import { services } from 'wix-bookings.v2';
2
3/*
4 * Sample serviceID value: 'ff61204b-b19a-5cc8-823b-7eed8ae5fc28'
5 */
6async function deleteService(serviceID) {
7 await services.deleteService(serviceID);
8 console.log('Deleted the service');
9}
10
11/* Promise resolves to void */
12