---
title: "Delete a job target"
method: DELETE
path: "/api/jobs/{id}/targets/{targetId}"
tags: ["Targets"]
---

# Delete a job target

`DELETE /api/jobs/{id}/targets/{targetId}`

## Request

- Base URL: `https://your-server`
- URL: `https://your-server/api/jobs/{id}/targets/{targetId}`
- Auth: OAuth 2
  - Authorization code: `/oauth/authorize`
  - Client credentials
  - Token URL: `/oauth/token`
- TypeScript: <https://skmtc.dev/sitecore/apis/jobs-api/docs/api/jobs/:id/targets/:targetId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a target for a job using its ID.

## Path parameters

- `id` integer, required
- `targetId` integer, required

## Response `204`

Entity successfully deleted.

## Other responses

- `400`: Request not valid or error during operation.
- `401`: Unauthorized request.
- `404`: Entity not found or user not authorized.

---

[API](https://skmtc.dev/sitecore/apis/jobs-api.md) - [All operations](https://skmtc.dev/sitecore/apis/jobs-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sitecore/apis/jobs-api/revisions/365efd74790f?raw)
