---
title: "delete smtp credential"
method: DELETE
path: "/api/v1/mails/{mailServerID}/smtp-credentials/{username}"
tags: ["smtp"]
---

# delete smtp credential

`DELETE /api/v1/mails/{mailServerID}/smtp-credentials/{username}`

## Path parameters

- `mailServerID` string, required
- `username` string, required

## Response `204`

OK

## Other responses

- `400` — Bad Request
- `404` — Mail Server or SMTP Credential not found
- `500` — Unexpected error

## Changes

- **2023-10-04** `c63802bd8a38` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/liara-cloud/apis/liara-mail-api-documentaion/changes/api/v1/mails/:mailServerID/smtp-credentials/:username/delete.md)

---

[API](https://skmtc.dev/liara-cloud/apis/liara-mail-api-documentaion.md) · [All operations](https://skmtc.dev/liara-cloud/apis/liara-mail-api-documentaion/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/liara-cloud/liara-mail-api-documentaion/revisions/5ae39ee353b2/schema)
