Deletes multiple services.
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
.
You can only call this method when authenticated as a Wix app or Wix user identity.
function bulkDeleteServices(
ids: Array<string>,
options: BulkDeleteServicesOptions,
): Promise<BulkDeleteServicesResponse>;
IDs of the services to delete.
import { services } from "@wix/bookings";
async function bulkDeleteServices(ids, options) {
const response = await services.bulkDeleteServices(ids, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.