---
title: "Delete todo"
method: DELETE
path: "/todos/{todoId}"
tags: ["📝 Todo list"]
---

# Delete todo

`DELETE /todos/{todoId}`

## Request

- Base URL: `https://api.freeapi.app/api/v1`
- URL: `https://api.freeapi.app/api/v1/todos/{todoId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/docs/todos/:todoId/delete.ts> (a function with typed inputs; its response is checked against the schema)

The API endpoint is responsible for deleting a todo item based on the provided todoID in the path variable.

When accessing this endpoint and specifying the todoID in the URL, the corresponding todo item will be deleted from the system.

## Response `200`

Delete todo

- object
  - `data` object
    - `deletedTodo` object
      - `__v` number
      - `_id` string
      - `createdAt` string
      - `description` string
      - `isDone` boolean
      - `title` string
      - `updatedAt` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi.md) - [All operations](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/revisions/a9f3a290e4dc?raw)
