deleteOrganizationLogo()
Deletes an organization's logo.
function deleteOrganizationLogo(organizationId: string): Promise<Organization>
- Name
organizationId
- Type
string
- Description
The ID of the organization for which the logo will be deleted.
const organizationId = 'org_123'
const response = await clerkClient.organizations.deleteOrganizationLogo(organizationId)
console.log(response)
/*
_Organization {
id: 'org_123',
name: 'test',
slug: 'test',
imageUrl: 'https://img.clerk.com/eyJ...',
hasImage: false,
createdBy: 'user_2f9RVdIOe8JzGlfc3HWwXDg1AaX',
createdAt: 1718653681849,
updatedAt: 1719869217527,
publicMetadata: {},
privateMetadata: {},
maxAllowedMemberships: 5,
adminDeleteEnabled: true,
membersCount: undefined
}
*/
Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint DELETE/organizations/{organization_id}/logo
. See the BAPI reference for more details.
Feedback
Last updated on