> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - 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<questionEntryIds> | description: IDs of question entries to delete. | required: true | validation: minItems 1, maxItems 100, format GUID
 Return type: BulkDeleteQuestionEntriesResponse
  - name: itemMetadata | type: array<ItemMetadata> | description: Results for each question entry deletion, including success or error information.  | validation: minItems 1, maxItems 100
     - 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/question-entry/v2/bulk/question-entries/delete \
  --header 'Authorization: <AUTH>' \
  --header 'Content-Type: application/json' \
  --data '{
    "questionEntryIds": [
      "q1a2b3c4-d5e6-7890-abcd-ef1234567890",
      "q2b3c4d5-e6f7-8901-bcde-f23456789012",
      "q3c4d5e6-f7a8-9012-cdef-345678901234"
    ]
  }'
~~~
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.faq.questionEntry.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<string> | description: IDs of question entries to delete. | required: true | validation: minItems 1, maxItems 100, format GUID
 Return type: PROMISE<BulkDeleteQuestionEntriesResponse>
  - name: itemMetadata | type: array<ItemMetadata> | description: Results for each question entry deletion, including success or error information.  | validation: minItems 1, maxItems 100
     - 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-managed)
Self-managed 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);
};
```

---