> 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 # Method name: onSubmissionDeleted(event: SubmissionDeleted) # Method package: wixFormsV2 # Method menu location: wixFormsV2 --> onSubmissionDeleted # Method Link: https://dev.wix.com/docs/velo/events-service-plugins/forms/events/on-submission-deleted.md # Method Description: > **Note:** The Form Submission API only works with the Wix Forms app. Call [GetAppInstance](https://dev.wix.com/docs/rest/api-reference/app-management/apps/app-instance/get-app-instance.md) to confirm that the app named `wix_forms` is installed on the site.
Triggered when a submission is deleted. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## An event that triggers when a submission is deleted ```javascript // Place this code in the events.js file // of your site's Backend section. // Add the file if it doesn't exist. export function wixForms_onSubmissionDeleted(event) { console.log(`Deleted submission. Event details: `, event) } /* Full event object: { "metadata": { "entityId": "f8281b62-1b2f-45bf-ba7d-f041d7653d2d", "eventTime": "2023-12-28T12:55:55.630Z", "id": "a92d9e8b-abd7-4903-a954-5a6848f6f4eb", "triggeredByAnonymizeRequest": false } } ``` ---