Targets

Delete a Target

DELETE
/targets/{target_id}

Deletes a Target with no Generation history, release history, or active Draft. A 409 resource_has_dependencies means one of those resources still depends on it. Retrieve the Target, disable it instead, or resolve the dependency before retrying.

See conditional writes for ETag and If-Match.

AuthorizationBearer <token>

Organization API key from the console (ak_...), or an OAuth access token with user:org:read, the organization selected during consent, and the capability required by the operation.

In: header

Path Parameters

target_id*string

Stable identifier for one configured generated product.

Match^tgt_[a-z0-9]{16}$

Header Parameters

If-Match?string

ETag from a preceding response. The write applies only if the resource still has that version; otherwise it returns 412 precondition_failed without changes. Omit to write the current version. See https://typeship.dev/docs/typeship-api#conditional-writes.

Length1 <= length <= 1024

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/targets/tgt_5m8q2v7k1p9d4h6c"
{  "id": "tgt_5m8q2v7k1p9d4h6c",  "object": "target",  "deleted": true,  "request_id": "req_3k8m1v6q9p2d7h4c"}