This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Deletes a booking policy.
You can't delete the default policy without setting a different policy as default first.
You can only call this method when authenticated as a Wix app or Wix user identity.
function deleteBookingPolicy(bookingPolicyId: string): Promise<void>;
ID of the booking policy to delete.
import { bookingPolicies } from "@wix/bookings";
async function deleteBookingPolicy(bookingPolicyId) {
const response = await bookingPolicies.deleteBookingPolicy(bookingPolicyId);
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.