> 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

# DeleteIntakeForm

# Package: contentCollector

# Namespace: IntakeForms

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

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

## Introduction

Deletes an intake form.

After deletion, the intake form no longer appears in [Query Intake Forms](https://dev.wix.com/docs/api-reference/account-level/partners/content-collector/intake-form-v1/query-intake-forms.md)
or [Search Intake Forms](https://dev.wix.com/docs/api-reference/account-level/partners/content-collector/intake-form-v1/search-intake-forms.md) results.

Deleting an intake form also permanently deletes the questionnaire behind it.
This is irreversible: the questionnaire and its configuration are destroyed
along with the intake form.

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

---

## REST API

### Schema

```
 Method: deleteIntakeForm
 Description: Deletes an intake form.  After deletion, the intake form no longer appears in [Query Intake Forms](https://dev.wix.com/docs/api-reference/account-level/partners/content-collector/intake-form-v1/query-intake-forms.md) or [Search Intake Forms](https://dev.wix.com/docs/api-reference/account-level/partners/content-collector/intake-form-v1/search-intake-forms.md) results.  Deleting an intake form also permanently deletes the questionnaire behind it. This is irreversible: the questionnaire and its configuration are destroyed along with the intake form.  To delete multiple intake forms in a single request, call [Bulk Delete Intake Forms](https://dev.wix.com/docs/api-reference/account-level/partners/content-collector/intake-form-v1/bulk-delete-intake-forms.md).
 URL: https://www.wixapis.com/partners/content-collector/v1/intake-forms/{intakeFormId}
 Method: DELETE
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  intakeFormId
 Method parameters: 
   param name: intakeFormId | type:   none | required: true 
 Return type: DeleteIntakeFormResponse
  EMPTY-OBJECT {}


```

### Examples

### Delete Intake Form
Deletes an intake form (also permanently deletes its Wix Forms schema)

```curl
curl -X DELETE \
  'https://www.wixapis.com/intake-forms/v1/intake-forms/8046df3c-7575-4098-a5ab-c91ad8f33c47' \
  -H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.contentCollectorIntakeForms.contentCollectorIntakeForms.deleteIntakeForm(intakeFormId)
 Description: Deletes an intake form.  After deletion, the intake form no longer appears in [Query Intake Forms](https://dev.wix.com/docs/api-reference/account-level/partners/content-collector/intake-form-v1/query-intake-forms.md) or [Search Intake Forms](https://dev.wix.com/docs/api-reference/account-level/partners/content-collector/intake-form-v1/search-intake-forms.md) results.  Deleting an intake form also permanently deletes the questionnaire behind it. This is irreversible: the questionnaire and its configuration are destroyed along with the intake form.  To delete multiple intake forms in a single request, call [Bulk Delete Intake Forms](https://dev.wix.com/docs/api-reference/account-level/partners/content-collector/intake-form-v1/bulk-delete-intake-forms.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  intakeFormId
 Method parameters: 
   param name: intakeFormId | type: string | description: Id of the IntakeForm to delete. | required: true | validation: format GUID
 Return type: PROMISE<DeleteIntakeFormResponse>
  EMPTY-OBJECT {}


```

### Examples

### Delete an intake form
Deletes an intake form, also permanently deleting its questionnaire

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

const intakeFormId = "8046df3c-7575-4098-a5ab-c91ad8f33c47";

async function deleteIntakeForm() {
  await contentCollectorIntakeForms.deleteIntakeForm(intakeFormId);
}

```

### deleteIntakeForm (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 deleteIntakeForm(intakeFormId) {
  const response = await myWixClient.contentCollectorIntakeForms.deleteIntakeForm(intakeFormId);
};
```

---