deleteRedirectUrl()
Deletes a RedirectUrl
.
function deleteRedirectUrl(redirectUrlId: string): Promise<RedirectUrl>
- Name
redirectUrlId
- Type
string
- Description
The ID of the redirect URL to delete.
const redirectUrlId = 'ru_123'
const response = await clerkClient.redirectUrls.deleteRedirectUrl(redirectUrlId)
console.log(response)
/*
_DeletedObject {
object: 'redirect_url',
id: 'ru_123',
slug: null,
deleted: true
}
*/
Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint DELETE/redirect_urls/{id}
. See the BAPI reference for more information.
Feedback
Last updated on