---
title: "DELETE /userprofiles/{userprofilesId}/dynamicTargetingKeys/{dynamicTargetingKeysId}"
method: DELETE
path: "/userprofiles/{userprofilesId}/dynamicTargetingKeys/{dynamicTargetingKeysId}"
tags: ["dynamicTargetingKeys"]
---

# DELETE /userprofiles/{userprofilesId}/dynamicTargetingKeys/{dynamicTargetingKeysId}

`DELETE /userprofiles/{userprofilesId}/dynamicTargetingKeys/{dynamicTargetingKeysId}`

## Request

- Base URL: `https://dfareporting.googleapis.com/dfareporting/v5`
- URL: `https://dfareporting.googleapis.com/dfareporting/v5/userprofiles/{userprofilesId}/dynamicTargetingKeys/{dynamicTargetingKeysId}`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/dfatrafficking`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/dfatrafficking`
- TypeScript: <https://skmtc.dev/google/apis/dfareporting/docs/userprofiles/:userprofilesId/dynamicTargetingKeys/:dynamicTargetingKeysId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes an existing dynamic targeting key.

## Path parameters

- `userprofilesId` string, required
- `dynamicTargetingKeysId` string, required

## Query parameters

- `name` string, required
- `objectType` 'OBJECT_ADVERTISER' | 'OBJECT_AD' | 'OBJECT_CREATIVE' | 'OBJECT_PLACEMENT', required

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/dfareporting.md) - [All operations](https://skmtc.dev/google/apis/dfareporting/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/dfareporting/revisions/be73a9a450de?raw)
