> 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

# DeleteEmailTransmission

# Package: emails

# Namespace: EmailTransmissionService

# Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/emails/email-transmission-v1/delete-email-transmission.md

## Permission Scopes:
Manage Email Marketing: SCOPE.DC-PROMOTE.EMAIL-MARKETING

## Introduction

Deletes an email transmission by ID.

Deletion is only allowed for transmissions with `PROCESSED` or `REJECTED` status.

---

## REST API

### Schema

```
 Method: deleteEmailTransmission
 Description: Deletes an email transmission by GUID.  Deletion is only allowed for transmissions with `PROCESSED` or `REJECTED` status.
 URL: https://www.wixapis.com/email-transmissions/v1/email-transmissions/{emailTransmissionId}
 Method: DELETE
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  emailTransmissionId
 Method parameters: 
   param name: emailTransmissionId | type:   none | required: true 
 Return type: DeleteEmailTransmissionResponse
  EMPTY-OBJECT {}

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: EMAIL_TRANSMISSION_IS_IN_PROGRESS | Description: The email transmission can't be deleted while it's in progress. Wait until the status is `PROCESSED` or `REJECTED`, then try again.


```

### Examples

### Delete an email transmission
Delete an email transmission by its ID. The transmission must have `PROCESSED` or `REJECTED` status.

```curl
curl -X DELETE \
'https://www.wixapis.com/email-transmissions/v1/email-transmissions/82d70fd4-09af-4399-9464-4a898f3321f8' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.emailTransmissions.emailTransmissions.deleteEmailTransmission(emailTransmissionId)
 Description: Deletes an email transmission by GUID.  Deletion is only allowed for transmissions with `PROCESSED` or `REJECTED` status.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  emailTransmissionId
 Method parameters: 
   param name: emailTransmissionId | type: string | description: Email transmission GUID. | required: true | validation: format GUID
 Return type: PROMISE<DeleteEmailTransmissionResponse>
  EMPTY-OBJECT {}

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: EMAIL_TRANSMISSION_IS_IN_PROGRESS | Description: The email transmission can't be deleted while it's in progress. Wait until the status is `PROCESSED` or `REJECTED`, then try again.


```

### Examples

### Delete an email transmission
Delete an email transmission by its ID. The transmission must have `PROCESSED` or `REJECTED` status.

```javascript
import { emailTransmissions } from "@wix/email-transmissions";

async function deleteEmailTransmission() {
  await emailTransmissions.deleteEmailTransmission(
    "dd266d88-6aac-48f5-a7b4-4ce61a92732f",
  );
}

```

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

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


async function deleteEmailTransmission(emailTransmissionId) {
  const response = await myWixClient.emailTransmissions.deleteEmailTransmission(emailTransmissionId);
};
```

---