delete() - OAuth applications | Clerk Docs
delete()
Deletes the given OAuth application.
Returns the DeletedObject object.
function delete(oauthApplicationId: string): Promise<DeletedObject>
Parameters
- Name:
oauthApplicationId
Type:string
Description: The ID of the OAuth application to delete.
Usage
Note
Using clerkClient varies based on the SDK you're using. Refer to the overview for usage details, including guidance on how to access the userId and other properties.
const oauthApplicationId = 'oauthapp_123'
const response = await clerkClient.oauthApplications.delete(oauthApplicationId)
Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint DELETE/oauth_applications/{oauth_application_id}. See the BAPI reference for more information.