Skip to Content
You are viewing a beta version of Clerk Docs
Visit the latest docs
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

deleteRedirectUrl()

Deletes a redirect URL, given a valid ID.

function deleteRedirectUrl: (redirectUrlId: string) => Promise<RedirectUrl>;

deleteRedirectUrl() parameters

NameTypeDescription
redirectUrlIdstringThe ID of the redirect URL to delete.

deleteRedirectUrl() example

const redirectUrlId = 'ru_2bxLHVfYsA13r8iKHWoY8SAr9az'; const response = await clerkClient.redirectUrls.deleteRedirectUrl(redirectUrlId); console.log(response); /* _DeletedObject { object: 'redirect_url', id: 'ru_2bxLHVfYsA13r8iKHWoY8SAr9az', 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(opens in a new tab) for more details.

What did you think of this content?

Clerk © 2024