---
title: "Delete a foreign key"
method: DELETE
path: "/v4/users/{userId}/foreign-key/{system}/{key}"
tags: ["Users"]
---

# Delete a foreign key

`DELETE /v4/users/{userId}/foreign-key/{system}/{key}`

Deletes the provided foreign key, if the supplied `userId`, `system`, and `key` match.

## Path parameters

- `userId` string, required
- `system` string, required
- `key` string, required

## Request body

- string

## Response `200`

OK - Foreign key was successfully deleted

## Other responses

- `404` — Not Found - Cannot find a user with the supplied `userId`

---

[API](https://skmtc.dev/zuora/apis/admin-api-reference.md) · [All operations](https://skmtc.dev/zuora/apis/admin-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zuora/admin-api-reference/revisions/789812d35ac8/schema)
