> 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

# DeleteFormSpamSubmissionReport

# Package: forms

# Namespace: FormSpamSubmissionReportService

# Method link: https://dev.wix.com/docs/api-reference/crm/forms/form-spam-submission-report-v4/delete-form-spam-submission-report.md

## Permission Scopes:
Manage form submissions.: SCOPE.FORMS.MANAGE-SUBMISSIONS

## Introduction

Permanently deletes a form spam submission report.

The report's uploaded files are also deleted. To restore the submission instead, call [Report Not Spam Submission](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/report-not-spam-submission.md).

To delete multiple reports in a single API call, call [Bulk Delete Form Spam Submission Report](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/bulk-delete-form-spam-submission-report.md).

---

## REST API

### Schema

```
 Method: deleteFormSpamSubmissionReport
 Description: Permanently deletes a form spam submission report.  The report's uploaded files are also deleted. To restore the submission instead, call [Report Not Spam Submission](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/report-not-spam-submission.md).  To delete multiple reports in a single API call, call [Bulk Delete Form Spam Submission Report](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/bulk-delete-form-spam-submission-report.md).
 URL: https://www.wixapis.com/form-spam-submission-report-service/v4/form-spam-submission-reports/{formSpamSubmissionReportId}
 Method: DELETE
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  formSpamSubmissionReportId
 Method parameters: 
   param name: formSpamSubmissionReportId | type:   none | required: true 
 Return type: DeleteFormSpamSubmissionReportResponse
  EMPTY-OBJECT {}


```

### Examples

### Delete a spam submission report
```curl
curl -X DELETE \
'https://www.wixapis.com/form-spam-submission-report-service/v4/form-spam-submission-reports/a7c3e2f1-5b8d-4e9a-9c1f-3d2e4b6a8f10' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.forms.formSpamSubmissionReports.deleteFormSpamSubmissionReport(formSpamSubmissionReportId)
 Description: Permanently deletes a form spam submission report.  The report's uploaded files are also deleted. To restore the submission instead, call [Report Not Spam Submission](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/report-not-spam-submission.md).  To delete multiple reports in a single API call, call [Bulk Delete Form Spam Submission Report](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/bulk-delete-form-spam-submission-report.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  formSpamSubmissionReportId
 Method parameters: 
   param name: formSpamSubmissionReportId | type: string | description: GUID of the form spam submission report to delete. | required: true | validation: format GUID
 Return type: PROMISE<DeleteFormSpamSubmissionReportResponse>
  EMPTY-OBJECT {}


```

### Examples

### Delete a spam submission report
```javascript
import { formSpamSubmissionReports } from "@wix/forms";

async function deleteFormSpamSubmissionReport() {
  const response = await formSpamSubmissionReports.deleteFormSpamSubmissionReport(
    "a7c3e2f1-5b8d-4e9a-9c1f-3d2e4b6a8f10",
  );
}

```

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

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


async function deleteFormSpamSubmissionReport(formSpamSubmissionReportId) {
  const response = await myWixClient.formSpamSubmissionReports.deleteFormSpamSubmissionReport(formSpamSubmissionReportId);
};
```

---