> 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 # BulkDeleteQuestionEntries # Package: faqApp # Namespace: QuestionEntryService # Method link: https://dev.wix.com/docs/api-reference/business-management/faq-app/question-entry-v2/bulk-delete-question-entries.md ## Permission Scopes: Manage FAQ: SCOPE.DC-LABS.MANAGE-FAQ ## Introduction Deletes multiple question entries. Deleting a question entry permanently removes it from the site's Wix FAQ dashboard page. To delete a single question entry, call the Delete Question Entry method. --- ## REST API ### Schema ``` Method: bulkDeleteQuestionEntries Description: Deletes multiple question entries. Deleting a question entry permanently removes it from the site's Wix FAQ dashboard page. To delete a single question entry, call the Delete Question Entry method. URL: https://www.wixapis.com/faq/question-entry/v2/bulk/question-entries/delete Method: POST # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: questionEntryIds Method parameters: param name: questionEntryIds | type: array | description: IDs of question entries to delete. | required: true Return type: BulkDeleteQuestionEntriesResponse - name: itemMetadata | type: array | description: Results for each question entry deletion, including success or error information. - name: id | type: string | description: Item GUID. Should always be available, unless it's impossible (for example, when failing to create an item). - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items. - name: success | type: boolean | description: Whether the requested action was successful for this item. When `false`, the `error` field is populated. - name: error | type: ApplicationError | description: Details about the error in case of failure. - name: code | type: string | description: Error code. - name: description | type: string | description: Description of the error. - name: data | type: object | description: Data related to the error. - name: bulkActionMetadata | type: BulkActionMetadata | description: Metadata about the bulk delete operation. - name: totalSuccesses | type: integer | description: Number of items that were successfully processed. - name: totalFailures | type: integer | description: Number of items that couldn't be processed. - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded. ``` ### Examples ### BulkDeleteQuestionEntries ```curl ~~~cURL curl --request POST \ --url https://www.wixapis.com/faq/v2/bulk/question-entries/delete \ --header 'Authorization: ' \ --header 'Content-Type: application/json' \ --data '{ "question_entry_ids": [ "q1a2b3c4-d5e6-7890-abcd-ef1234567890", "q2b3c4d5-e6f7-8901-bcde-f23456789012", "q3c4d5e6-f7g8-9012-cdef-345678901234" ] }' ~~~ ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.faqApp.QuestionEntryService.bulkDeleteQuestionEntries(questionEntryIds) Description: Deletes multiple question entries. Deleting a question entry permanently removes it from the site's Wix FAQ dashboard page. To delete a single question entry, call the Delete Question Entry method. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: questionEntryIds Method parameters: param name: questionEntryIds | type: array | description: IDs of question entries to delete. | required: true Return type: PROMISE - name: itemMetadata | type: array | description: Results for each question entry deletion, including success or error information. - name: _id | type: string | description: Item GUID. Should always be available, unless it's impossible (for example, when failing to create an item). - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items. - name: success | type: boolean | description: Whether the requested action was successful for this item. When `false`, the `error` field is populated. - name: error | type: ApplicationError | description: Details about the error in case of failure. - name: code | type: string | description: Error code. - name: description | type: string | description: Description of the error. - name: data | type: object | description: Data related to the error. - name: bulkActionMetadata | type: BulkActionMetadata | description: Metadata about the bulk delete operation. - name: totalSuccesses | type: integer | description: Number of items that were successfully processed. - name: totalFailures | type: integer | description: Number of items that couldn't be processed. - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded. ``` ### Examples ### bulkDeleteQuestionEntries ```javascript import { questionEntry } from '@wix/faq'; async function bulkDeleteQuestionEntries(questionEntryIds) { const response = await questionEntry.bulkDeleteQuestionEntries(questionEntryIds); }; ``` ### bulkDeleteQuestionEntries (with elevated permissions) ```javascript import { questionEntry } from '@wix/faq'; import { auth } from '@wix/essentials'; async function myBulkDeleteQuestionEntriesMethod(questionEntryIds) { const elevatedBulkDeleteQuestionEntries = auth.elevate(questionEntry.bulkDeleteQuestionEntries); const response = await elevatedBulkDeleteQuestionEntries(questionEntryIds); } ``` ### bulkDeleteQuestionEntries (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 { questionEntry } from '@wix/faq'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { questionEntry }, // Include the auth strategy and host as relevant }); async function bulkDeleteQuestionEntries(questionEntryIds) { const response = await myWixClient.questionEntry.bulkDeleteQuestionEntries(questionEntryIds); }; ``` ---