> 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

# BulkDeleteJoinApplications

# Package: onlinePrograms

# Namespace: JoinApplicationsService

# Method link: https://dev.wix.com/docs/api-reference/business-management/online-programs/join-applications/bulk-delete-join-applications.md

## Permission Scopes:
Manage Online Programs: SCOPE.CHALLENGES.MANAGE

## Introduction

Deletes up to 100 join applications.

To delete a single join application, call [Delete Join Application](https://dev.wix.com/docs/api-reference/business-management/online-programs/join-applications/delete-join-application.md).

---

## REST API

### Schema

```
 Method: bulkDeleteJoinApplications
 Description: Deletes up to 100 join applications.  To delete a single join application, call [Delete Join Application](https://dev.wix.com/docs/api-reference/business-management/online-programs/join-applications/delete-join-application.md).
 URL: https://www.wixapis.com/online-programs/participants/v3/bulk/join-applications/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:  joinApplicationIds
 Method parameters: 
   param name: joinApplicationIds | type: array<joinApplicationIds> | description: IDs of the join applications to delete. | required: true | validation: minItems 1, maxItems 100, format GUID
 Return type: BulkDeleteJoinApplicationsResponse
  - name: results | type: array<BulkJoinApplicationResult> | description: Result of each individual delete, including metadata.  | validation: minItems 1, maxItems 100
     - name: itemMetadata | type: ItemMetadata | description: Metadata for the individual delete.  
        - 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 for the bulk delete.  
     - 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 join applications
Deletes multiple join applications in a single request

```curl
curl -X POST \
'https://www.wixapis.com/online-programs/participants/v3/bulk/join-applications/delete' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "joinApplicationIds": [
    "f5b74327-4e94-4d42-a214-03e7f1f805ef",
    "0f8eb82f-2f17-46c5-bab2-16923146b4c4"
  ]
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.onlinePrograms.joinApplications.bulkDeleteJoinApplications(joinApplicationIds)
 Description: Deletes up to 100 join applications.  To delete a single join application, call [Delete Join Application](https://dev.wix.com/docs/api-reference/business-management/online-programs/join-applications/delete-join-application.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  joinApplicationIds
 Method parameters: 
   param name: joinApplicationIds | type: array<array> | description: IDs of the join applications to delete. | required: true | validation: minItems 1, maxItems 100, format GUID
 Return type: PROMISE<BulkDeleteJoinApplicationsResponse>
  - name: results | type: array<BulkJoinApplicationResult> | description: Result of each individual delete, including metadata.  | validation: minItems 1, maxItems 100
     - name: itemMetadata | type: ItemMetadata | description: Metadata for the individual delete.  
        - 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 for the bulk delete.  
     - 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 join applications
Deletes multiple join applications in a single request

```javascript
import { joinApplications } from "@wix/online-programs";

async function bulkDeleteJoinApplications() {
  const response = await joinApplications.bulkDeleteJoinApplications([
    "f5b74327-4e94-4d42-a214-03e7f1f805ef",
    "0f8eb82f-2f17-46c5-bab2-16923146b4c4",
  ]);
}

```

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

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


async function bulkDeleteJoinApplications(joinApplicationIds) {
  const response = await myWixClient.joinApplications.bulkDeleteJoinApplications(joinApplicationIds);
};
```

---