---
title: "Delete a sitemap (removes the DB row and generated XML files)."
method: DELETE
path: "/marketing/sitemaps/{id}"
tags: ["Admin Marketing: Search & SEO"]
---

# Delete a sitemap (removes the DB row and generated XML files).

`DELETE /marketing/sitemaps/{id}`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/marketing/sitemaps/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/marketing/sitemaps/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a sitemap (removes the DB row and generated XML files).

## Path parameters

- `id` string, required

## Response `200`

Sitemap deleted.

## Other responses

- `404`: Sitemap not found.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
