> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Package: eventManagement # Namespace: policiesV2 # Webhook link: https://dev.wix.com/docs/api-reference/business-solutions/events/event-management/policies-v2/policy-deleted.md ## Introduction Triggered when a policy is deleted. --- ## REST API ### Schema ``` Webhook: Policy Deleted Description: Triggered when a policy is deleted. Event body: - name: id | type: string | description: Unique event ID. Allows clients to ignore duplicate events. - name: entityFqdn | type: string | description: Fully qualified domain name of the entity associated with the event. - name: slug | type: string | description: Event name. - name: entityId | type: string | description: ID of the entity associated with the event. - name: eventTime | type: string (date-time) | description: Event timestamp. - name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered as a result of a privacy regulation application such as GDPR. - name: originatedFrom | type: string | description: If present, indicates the action that triggered the event. ``` ### Examples ```curl { "id": "3600c836-1e2a-4f91-bdd6-a6302316805a", "entityFqdn": "wix.events.v2.policy", "slug": "deleted", "entityId": "e9bf5e65-b38d-4732-ac7f-268f94d95975", "deletedEvent": { "movedToTrash": true }, "eventTime": "2023-02-23T11:51:00.542009Z", "triggeredByAnonymizeRequest": false } ``` --- ## JavaScript SDK ### Schema ``` Webhook: onPolicyDeleted Description: Triggered when a policy is deleted. Payload: PolicyDeletedEnvelope - name: entity | type: Policy | description: none - name: _id | type: string | description: Policy GUID. - name: revision | type: string | description: Revision number, which increments by 1 each time the policy is updated. To prevent conflicting changes, the current revision must be used when updating a policy. - name: _createdDate | type: Date | description: Date and time the policy was created in `yyyy-mm-ddThh:mm:sssZ` format. - name: _updatedDate | type: Date | description: Date and time the policy was updated in `yyyy-mm-ddThh:mm:sssZ` format. - name: name | type: string | description: Policy name that is visible in the dashboard and checkout form. Min: 1 character
Max: 40 characters - name: body | type: string | description: Policy body. Usually contains various terms and conditions. Min: 1 character Max: 50,000 characters Note: You can format text using various HTML tags such as `

`, ``, `