Skip to content
Go to Micro

Delete a view bundle

client.views.delete(stringviewID, ViewDeleteParams { teamId, viewObjectType } params, RequestOptionsoptions?): void
DELETE/v2/prism/{teamId}/{viewObjectType}/views/{viewId}

Delete a view bundle

ParametersExpand Collapse
viewID: string
formatuuid
params: ViewDeleteParams { teamId, viewObjectType }
teamId?: string
formatuuid
viewObjectType: "action" | "deal" | "document" | 3 more
One of the following:
"action"
"deal"
"document"
"event"
"identity"
"organization"

Delete a view bundle

import Micro from '@micro-so/sdk';

const client = new Micro({
  teamID: 'My Team ID',
  apiKey: process.env['MICRO_API_KEY'], // This is the default and can be omitted
});

await client.views.delete('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { viewObjectType: 'action' });
Returns Examples