> 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 # BulkDeleteRsvpsByFilter # Package: registration # Namespace: RsvpManagement # Method link: https://dev.wix.com/docs/api-reference/business-solutions/events/registration/rsvp-v2/bulk-delete-rsvps-by-filter.md ## Permission Scopes: Manage Guest List: SCOPE.DC-EVENTS.MANAGE-GUEST-LIST ## Introduction Deletes multiple RSVPs. --- ## REST API ### Schema ``` Method: bulkDeleteRsvpsByFilter Description: Deletes multiple RSVPs. URL: https://www.wixapis.com/events/v2/bulk/rsvps/delete-by-filter Method: POST # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: filter Method parameters: param name: filter | type: filter | description: Filter object. | required: true param name: search | type: SearchDetails - name: mode | type: Mode | description: Search mode. Defines the search logic for combining multiple terms in the `expression`. - enum: - OR: At least one of the search terms must be present. - AND: Searches by all provided words. - name: expression | type: string | description: Search term or expression. - name: fields | type: array | description: Fields to search in. If the array is empty, all searchable fields are searched. Use dot notation to specify a JSON path. For example, For example, `order.address.streetName`. - name: fuzzy | type: boolean | description: Whether to enable the search function to use an algorithm to automatically find results that are close to the search expression, such as typos and declensions. Return type: BulkDeleteRsvpsByFilterResponse - name: jobId | type: string | description: Job GUID. Call [Get Async Job](https://dev.wix.com/docs/rest/business-management/async-job/get-async-job.md) with this GUID to retrieve the job details and metadata. Possible Errors: HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: EMPTY_FILTER | Description: Filter can't be empty. ``` ### Examples ### Bulk delete RSVPs by status ```curl curl -X POST 'https://www.wixapis.com/events/v2/bulk/rsvps/delete-by-filter' \ -H 'Content-Type: application/json' \ -H 'Authorization: ' \ "filter": { "status": "NO" } }' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.registration.RsvpManagement.bulkDeleteRsvpsByFilter(filter, options) Description: Deletes multiple RSVPs. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: filter Method parameters: param name: filter | type: object | description: Filter object. | required: true param name: options | type: BulkDeleteRsvpsByFilterOptions none - name: search | type: SearchDetails | description: Search details. - name: mode | type: Mode | description: Search mode. Defines the search logic for combining multiple terms in the `expression`. - enum: - OR: At least one of the search terms must be present. - AND: Searches by all provided words. - name: expression | type: string | description: Search term or expression. - name: fields | type: array | description: Fields to search in. If the array is empty, all searchable fields are searched. Use dot notation to specify a JSON path. For example, For example, `order.address.streetName`. - name: fuzzy | type: boolean | description: Whether to enable the search function to use an algorithm to automatically find results that are close to the search expression, such as typos and declensions. Return type: PROMISE - name: jobId | type: string | description: Job GUID. Call [Get Async Job](https://dev.wix.com/docs/rest/business-management/async-job/get-async-job.md) with this GUID to retrieve the job details and metadata. Possible Errors: HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: EMPTY_FILTER | Description: Filter can't be empty. ``` ### Examples ### Bulk delete RSVPs by status ```javascript import { rsvpV2 } from "@wix/events"; async function bulkDeleteRsvpsByFilter() { const response = await rsvpV2.bulkDeleteRsvpsByFilter({ filter: { status: "NO" }, }); return response; } ``` ### bulkDeleteRsvpsByFilter (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { rsvpV2 } from '@wix/events'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { rsvpV2 }, // Include the auth strategy and host as relevant }); async function bulkDeleteRsvpsByFilter(filter,options) { const response = await myWixClient.rsvpV2.bulkDeleteRsvpsByFilter(filter,options); }; ``` ---