> 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

# DeleteStandaloneForm

# Package: forms

# Namespace: FormStandaloneService

# Method link: https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/delete-standalone-form.md

## Permission Scopes:
Manage forms: SCOPE.FORMS.EDIT-FORM

## Introduction

Deletes a standalone form.

Deleting a standalone form means the form is no longer standalone. The form itself isn't deleted.

By default, the standalone form is moved to the trash bin. From there, you can restore it with
[Restore Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/restore-standalone-form-from-trash-bin.md) or permanently delete it with
[Remove Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/remove-standalone-form-from-trash-bin.md). To permanently delete the standalone form right away, set
`permanent` to `true`.

---

## REST API

### Schema

```
 Method: deleteStandaloneForm
 Description: Deletes a standalone form.  Deleting a standalone form means the form is no longer standalone. The form itself isn't deleted.  By default, the standalone form is moved to the trash bin. From there, you can restore it with [Restore Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/restore-standalone-form-from-trash-bin.md) or permanently delete it with [Remove Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/remove-standalone-form-from-trash-bin.md). To permanently delete the standalone form right away, set `permanent` to `true`.
 URL: https://www.wixapis.com/forms/v4/standalone-forms/{standaloneFormId}
 Method: DELETE
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  standaloneFormId
 Method parameters: 
   query param name: permanent | type: permanent | description: Whether to permanently delete the standalone form instead of moving it to the trash bin.  Default: `false`  
   param name: standaloneFormId | type:   none | required: true 
 Return type: DeleteStandaloneFormResponse
  EMPTY-OBJECT {}


```

### Examples

### Delete a standalone form
Moves a standalone form to the trash bin.

```curl
curl -X DELETE \
'https://www.wixapis.com/forms/v4/standalone-forms/7390125846218437120' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.standaloneForms.standaloneForms.deleteStandaloneForm(standaloneFormId, options)
 Description: Deletes a standalone form.  Deleting a standalone form means the form is no longer standalone. The form itself isn't deleted.  By default, the standalone form is moved to the trash bin. From there, you can restore it with [Restore Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/restore-standalone-form-from-trash-bin.md) or permanently delete it with [Remove Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/remove-standalone-form-from-trash-bin.md). To permanently delete the standalone form right away, set `permanent` to `true`.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  standaloneFormId
 Method parameters: 
   param name: options | type: DeleteStandaloneFormOptions  none  
        - name: permanent | type: boolean | description: Whether to permanently delete the standalone form instead of moving it to the trash bin.  Default: `false`  
   param name: standaloneFormId | type: string | description: GUID of the standalone form to delete. | required: true | validation: maxLength 36
 Return type: PROMISE<DeleteStandaloneFormResponse>
  EMPTY-OBJECT {}


```

### Examples

### Delete a standalone form
Moves a standalone form to the trash bin.

```javascript
import { standaloneForms } from "@wix/standalone-forms";

async function deleteStandaloneForm() {
  const response = await standaloneForms.deleteStandaloneForm("7390125846218437120");
}

```

### deleteStandaloneForm (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 { standaloneForms } from '@wix/standalone-forms';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

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


async function deleteStandaloneForm(standaloneFormId,options) {
  const response = await myWixClient.standaloneForms.deleteStandaloneForm(standaloneFormId,options);
};
```

---