# `delete()`

Deletes the given OAuth application.

Returns the [`DeletedObject`](/content/docs/reference/backend/types/deleted-object/index.html) object.

```
function delete(oauthApplicationId: string): Promise<DeletedObject>
```

## [Parameters](/content/docs/reference/backend/oauth-applications/delete#parameters/index.html)

- **Name**: `oauthApplicationId`  
  **Type**: `string`  
  **Description**: The ID of the OAuth application to delete.

## [Usage](/content/docs/reference/backend/oauth-applications/delete#usage/index.html)

Note

Using `clerkClient` varies based on the SDK you're using. Refer to the [overview](/content/docs/reference/backend/overview/index.html) for usage details, including guidance on [how to access the `userId` and other properties](/content/docs/reference/backend/overview#example-get-the-user-id-and-other-properties/index.html).

```
const oauthApplicationId = 'oauthapp_123'

const response = await clerkClient.oauthApplications.delete(oauthApplicationId)
```

## [Backend API (BAPI) endpoint](/content/docs/reference/backend/oauth-applications/delete#backend-api-bapi-endpoint/index.html)

This method in the SDK is a wrapper around the BAPI endpoint `DELETE/oauth_applications/{oauth_application_id}`. See the [BAPI reference⁠](/content/docs/reference/backend-api/tag/oauth-applications/DELETE/oauth_applications/%7Boauth_application_id%7D/index.html) for more information.
