[booking-manager-delete resource_id=1 action='delete']
This shortcode move all previously imported bookings to trash or permanently delete, usually before new import bookings.
It is means that you can insert this shortcode before import shortcode to have the imported bookings always up to date. Even if you modified or deleted the bookings in external sources, like AirBnB, or booking.com websites.
Its can resolve issue of updating deleted and edited events in external sources.
Parameters:
- resource_id (optional) - define ID of booking resource, where to import bookings (default value = 1).
-
action (optional) - delete or move bookings to trash.
- Parameter values:
- trash - move bookings to the Trash (default value).
- delete - permanently delete all imported bookings of specific booking resource.
Typical configuration to have updated events in the Booking Calendar can be look like this:
[booking-manager-delete resource_id=1 action='delete']
[booking-manager-import url='https://URL_to_AIRBNB/basic.ics' resource_id=1 import_conditions='if_dates_free' from='today' until='any' silence=1]
[booking-manager-import url='https://URL_to_BOOKING_COM/basic.ics' resource_id=1 import_conditions='if_dates_free' from='today' until='any' silence=1]