> 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

# DeleteEmailDesignTheme

# Package: emails

# Namespace: EmailDesignThemesService

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

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

## Introduction

Deletes an email design theme.

You can't retrieve or restore a deleted email design theme.

Emails that were already composed with the email design theme aren't affected, because the Wix email
editor copies the theme's `body` into the email at compose time rather than referencing it.

---

## REST API

### Schema

```
 Method: deleteEmailDesignTheme
 Description: Deletes an email design theme.  You can't retrieve or restore a deleted email design theme.  Emails that were already composed with the email design theme aren't affected, because the Wix email editor copies the theme's `body` into the email at compose time rather than referencing it.
 URL: https://www.wixapis.com/emails/themes/v1/email-design-themes/{emailDesignThemeId}
 Method: DELETE
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  emailDesignThemeId
 Method parameters: 
   param name: emailDesignThemeId | type:   none | required: true 
 Return type: DeleteEmailDesignThemeResponse
  EMPTY-OBJECT {}


```

### Examples

### Delete Email Design Theme
Deletes an email design theme by ID

```curl
curl -X DELETE \
'https://www.wixapis.com/emails/themes/v1/email-design-themes/f081bff6-8caf-47f4-94bd-105edd538507' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.emailDesignThemes.emailDesignThemes.deleteEmailDesignTheme(emailDesignThemeId)
 Description: Deletes an email design theme.  You can't retrieve or restore a deleted email design theme.  Emails that were already composed with the email design theme aren't affected, because the Wix email editor copies the theme's `body` into the email at compose time rather than referencing it.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  emailDesignThemeId
 Method parameters: 
   param name: emailDesignThemeId | type: string | description: GUID of the email design theme to delete. | required: true | validation: format GUID
 Return type: PROMISE<DeleteEmailDesignThemeResponse>
  EMPTY-OBJECT {}


```

### Examples

### Delete an email design theme
Deletes an email design theme by ID

```javascript
import { emailDesignThemes } from "@wix/email-design-themes";

async function deleteEmailDesignTheme() {
  await emailDesignThemes.deleteEmailDesignTheme(
    "e1d8bd46-22c5-4b4d-b1a6-92bfe83d452a",
  );
}

```

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

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


async function deleteEmailDesignTheme(emailDesignThemeId) {
  const response = await myWixClient.emailDesignThemes.deleteEmailDesignTheme(emailDesignThemeId);
};
```

---