> 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

# BulkDeleteIntakeForms

# Package: contentCollector

# Namespace: IntakeForms

# Method link: https://dev.wix.com/docs/api-reference/account-level/partners/content-collector/intake-form-v1/bulk-delete-intake-forms.md

## Permission Scopes:
SCOPE.PARTNERS.CONTENT-COLLECTOR: SCOPE.PARTNERS.CONTENT-COLLECTOR

## Introduction

Deletes multiple intake forms in a single request.

Deleting an intake form also permanently deletes the questionnaire behind it.
This is irreversible.

To delete a single intake form, call [Delete Intake Form](https://dev.wix.com/docs/api-reference/account-level/partners/content-collector/intake-form-v1/delete-intake-form.md).

---

## REST API

### Schema

```
 Method: bulkDeleteIntakeForms
 Description: Deletes multiple intake forms in a single request.  Deleting an intake form also permanently deletes the questionnaire behind it. This is irreversible.  To delete a single intake form, call [Delete Intake Form](https://dev.wix.com/docs/api-reference/account-level/partners/content-collector/intake-form-v1/delete-intake-form.md).
 URL: https://www.wixapis.com/partners/content-collector/v1/intake-forms/v1/bulk/intake-forms/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:  intakeFormIds
 Method parameters: 
   param name: intakeFormIds | type: array<intakeFormIds> | description: IntakeForm ids to be deleted | required: true | validation: minItems 1, maxItems 100, format GUID
 Return type: BulkDeleteIntakeFormsResponse
  - name: results | type: array<BulkIntakeFormResult> | description: Results  | validation: minItems 1, maxItems 100
     - name: itemMetadata | type: ItemMetadata | description: Metadata regarding the specific single delete operation  
        - name: id | type: string | description: Item GUID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.  | validation: format GUID
        - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items.  | validation: minimum 0
        - name: success | type: boolean | description: Whether the requested action for this item was successful. When `false`, the `error` field is returned.  
        - 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 regarding the bulk delete operation  
     - name: totalSuccesses | type: integer | description: Number of items that were successfully processed.  | validation: minimum 0
     - name: totalFailures | type: integer | description: Number of items that couldn't be processed.  | validation: minimum 0
     - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded.  | validation: minimum 0


```

### Examples

### Bulk Delete Intake Forms
Deletes multiple intake forms in a single request (also deletes their Wix Forms schemas)

```curl
curl -X POST \
  'https://www.wixapis.com/intake-forms/v1/bulk/intake-forms/delete' \
  -H 'Authorization: <AUTH>' \
  -H 'Content-Type: application/json' \
  --data-binary '{
    "intakeFormIds": [
      "8046df3c-7575-4098-a5ab-c91ad8f33c47",
      "1b2c3d4e-5f60-4718-9a2b-3c4d5e6f7081"
    ]
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.contentCollectorIntakeForms.contentCollectorIntakeForms.bulkDeleteIntakeForms(intakeFormIds)
 Description: Deletes multiple intake forms in a single request.  Deleting an intake form also permanently deletes the questionnaire behind it. This is irreversible.  To delete a single intake form, call [Delete Intake Form](https://dev.wix.com/docs/api-reference/account-level/partners/content-collector/intake-form-v1/delete-intake-form.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  intakeFormIds
 Method parameters: 
   param name: intakeFormIds | type: array<array> | description: IntakeForm ids to be deleted | required: true | validation: minItems 1, maxItems 100, format GUID
 Return type: PROMISE<BulkDeleteIntakeFormsResponse>
  - name: results | type: array<BulkIntakeFormResult> | description: Results  | validation: minItems 1, maxItems 100
     - name: itemMetadata | type: ItemMetadata | description: Metadata regarding the specific single delete operation  
        - name: _id | type: string | description: Item GUID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.  | validation: format GUID
        - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items.  | validation: minimum 0
        - name: success | type: boolean | description: Whether the requested action for this item was successful. When `false`, the `error` field is returned.  
        - 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 regarding the bulk delete operation  
     - name: totalSuccesses | type: integer | description: Number of items that were successfully processed.  | validation: minimum 0
     - name: totalFailures | type: integer | description: Number of items that couldn't be processed.  | validation: minimum 0
     - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded.  | validation: minimum 0


```

### Examples

### Bulk delete intake forms
Deletes multiple intake forms in a single request, also deleting their questionnaires

```javascript
import { contentCollectorIntakeForms } from "@wix/content-collector-intake-forms";

const intakeFormIds = [
  "8046df3c-7575-4098-a5ab-c91ad8f33c47",
  "1b2c3d4e-5f60-4718-9a2b-3c4d5e6f7081",
];

async function bulkDeleteIntakeForms() {
  const response = await contentCollectorIntakeForms.bulkDeleteIntakeForms(
    intakeFormIds
  );
}

```

### bulkDeleteIntakeForms (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 { contentCollectorIntakeForms } from '@wix/content-collector-intake-forms';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { contentCollectorIntakeForms },
  // Include the auth strategy and host as relevant
});


async function bulkDeleteIntakeForms(intakeFormIds) {
  const response = await myWixClient.contentCollectorIntakeForms.bulkDeleteIntakeForms(intakeFormIds);
};
```

---