> 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

# BulkDeleteFormSpamSubmissionReport

# Package: forms

# Namespace: FormSpamSubmissionReportService

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

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

## Introduction

Permanently deletes multiple form spam submission reports of a form.

The reports' uploaded files are also deleted. Report IDs that don't exist or that belong to another form are skipped.

To delete all reports that match a filter, call [Bulk Delete Form Spam Submission Report By Filter](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/bulk-delete-form-spam-submission-report-by-filter.md).

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

---

## REST API

### Schema

```
 Method: bulkDeleteFormSpamSubmissionReport
 Description: Permanently deletes multiple form spam submission reports of a form.  The reports' uploaded files are also deleted. Report GUIDs that don't exist or that belong to another form are skipped.  To delete all reports that match a filter, call [Bulk Delete Form Spam Submission Report By Filter](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/bulk-delete-form-spam-submission-report-by-filter.md).  To delete a single report, call [Delete Form Spam Submission Report](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/delete-form-spam-submission-report.md).
 URL: https://www.wixapis.com/form-spam-submission-report-service/v4/bulk/form-spam-submission-reports/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:  formId
 Method parameters: 
   param name: formId | type: formId | description: GUID of the form that the reports belong to. | required: true | validation: format GUID
   param name: formSpamSubmissionReportIds | type: array<formSpamSubmissionReportIds> | description: IDs of the form spam submission reports to delete.  | validation: maxItems 100, format GUID
 Return type: BulkDeleteFormSpamSubmissionReportResponse
  - name: results | type: array<BulkDeleteFormSpamSubmissionReportResult> | description: Result for each form spam submission report.  | validation: minItems 1, maxItems 100
     - name: itemMetadata | type: ItemMetadata | description: Metadata about the deleted report, such as whether the deletion succeeded.  
        - name: id | type: string | description: Item GUID. Should always be available, unless it's impossible (for example, when failing to create an item).  | validation: format GUID
        - 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 action, such as the number of successes and failures.  
     - 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

### Delete multiple spam submission reports
```curl
curl -X POST \
'https://www.wixapis.com/form-spam-submission-report-service/v4/bulk/form-spam-submission-reports/delete' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "formId": "21bcb6c7-02b3-4ed1-b6db-7856094fac03",
  "formSpamSubmissionReportIds": [
    "a7c3e2f1-5b8d-4e9a-9c1f-3d2e4b6a8f10",
    "c4d9f6b2-7a1e-4c3b-8f5d-2e9a7b1c6d42"
  ]
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.forms.formSpamSubmissionReports.bulkDeleteFormSpamSubmissionReport(formId, options)
 Description: Permanently deletes multiple form spam submission reports of a form.  The reports' uploaded files are also deleted. Report GUIDs that don't exist or that belong to another form are skipped.  To delete all reports that match a filter, call [Bulk Delete Form Spam Submission Report By Filter](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/bulk-delete-form-spam-submission-report-by-filter.md).  To delete a single report, call [Delete Form Spam Submission Report](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/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:  formId
 Method parameters: 
   param name: formId | type: string | description: GUID of the form that the reports belong to. | required: true | validation: format GUID
   param name: options | type: BulkDeleteFormSpamSubmissionReportOptions  none  
        - name: formSpamSubmissionReportIds | type: array<string> | description: IDs of the form spam submission reports to delete.  | validation: maxItems 100, format GUID
 Return type: PROMISE<BulkDeleteFormSpamSubmissionReportResponse>
  - name: results | type: array<BulkDeleteFormSpamSubmissionReportResult> | description: Result for each form spam submission report.  | validation: minItems 1, maxItems 100
     - name: itemMetadata | type: ItemMetadata | description: Metadata about the deleted report, such as whether the deletion succeeded.  
        - name: _id | type: string | description: Item GUID. Should always be available, unless it's impossible (for example, when failing to create an item).  | validation: format GUID
        - 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 action, such as the number of successes and failures.  
     - 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

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

async function bulkDeleteFormSpamSubmissionReport() {
  const response = await formSpamSubmissionReports.bulkDeleteFormSpamSubmissionReport(
    "21bcb6c7-02b3-4ed1-b6db-7856094fac03",
    {
      formSpamSubmissionReportIds: [
        "a7c3e2f1-5b8d-4e9a-9c1f-3d2e4b6a8f10",
        "c4d9f6b2-7a1e-4c3b-8f5d-2e9a7b1c6d42"
      ]
    },
  );
}

/* Promise resolves to:
 * {
 *   "results": [
 *     {
 *       "itemMetadata": {
 *         "_id": "a7c3e2f1-5b8d-4e9a-9c1f-3d2e4b6a8f10",
 *         "originalIndex": 0,
 *         "success": true
 *       }
 *     },
 *     {
 *       "itemMetadata": {
 *         "_id": "c4d9f6b2-7a1e-4c3b-8f5d-2e9a7b1c6d42",
 *         "originalIndex": 1,
 *         "success": true
 *       }
 *     }
 *   ],
 *   "bulkActionMetadata": {
 *     "totalSuccesses": 2,
 *     "totalFailures": 0,
 *     "undetailedFailures": 0
 *   }
 * }
 */

```

### bulkDeleteFormSpamSubmissionReport (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 bulkDeleteFormSpamSubmissionReport(formId,options) {
  const response = await myWixClient.formSpamSubmissionReports.bulkDeleteFormSpamSubmissionReport(formId,options);
};
```

---