---
title: "Deletes a time entry"
method: DELETE
path: "/v1/tickets/{ticketId}/timeentries/{id}"
tags: ["Ticket"]
---

# Deletes a time entry

`DELETE /v1/tickets/{ticketId}/timeentries/{id}`

## Request

- Base URL: `https://api.infoset.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infoset.app/v1/tickets/{ticketId}/timeentries/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/infoset/apis/infoset-rest-api/docs/v1/tickets/:ticketId/timeentries/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` integer, required
- `ticketId` integer, required

## Response `200`

OK

- TimeEntry
  - `id` integer
  - `note` string, nullable
  - `agentId` integer
  - `billable` integer
  - `companyId` integer, nullable
  - `startTime` string, date-time
  - `timerRunning` integer, nullable
  - `timeSpent` integer
  - `ticketId` integer
  - `executedAt` string, date-time
  - `accountId` integer
  - `createdAt` string, date-time
  - `updatedAt` string, date-time, nullable

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/infoset/apis/infoset-rest-api.md) - [All operations](https://skmtc.dev/infoset/apis/infoset-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/infoset/apis/infoset-rest-api/revisions/709c8123f593?raw)
