DELETE

Delete Area


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Deletes an area.

Any area can be deleted, active or archived, including one with recorded arrivals, except the site's last active area: deleting an ACTIVE area when no other area of the site is ACTIVE fails with LAST_ACTIVE_AREA, so a site keeps an area to record arrivals at. The rule counts the site's active areas, not a location's: a location can be left with no active area. Shortly after the area is deleted, it is removed from every plan benefit that grants entry into it, while Pricing Plans is enabled on the site. Past arrivals keep the area's ID and name, as recorded on each arrival. The area's ID is never reused. If the area held its location's default entrance, the default moves to the first entrance of another active area at that location: that area's revision increments and an Area Updated event fires for it. With no other active area there, the location has no default until an area is created, unarchived or moved there. A deleted area can't be restored. To take an area out of use and be able to make it active again later, call Archive Area instead (it leaves its plans either way). If the area changes while it is being deleted, the call fails with ALREADY_EXISTS and application code INVALID_REVISION; call it again.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permission Scopes
SCOPE.ARRIVALS.DELETE-AREAS
Learn more about app permissions.
Endpoint
DELETE
https://www.wixapis.com/arrivals/v1/areas/{areaId}

Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?