Skip to content

Zoho: Delete Custom Views

Zoho customViews.deleteCustomView: arguments, response, policy and SDK examples.

← Custom views operations · Get started

Operation zoho.deletecustomview

Provider route: DELETE /crm/v8/settings/custom_views. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["customViews"]["deleteCustomView"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.customViews.deleteCustomView(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_zoho import ZohoIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.custom_views.delete_custom_view(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectRequired within parentAdditional keys: not allowed
query.idsarrayRequired within parentList of custom view IDs
Maximum items: 100
Minimum items: 1
Unique items: true
query.ids[]stringEach itemCustom view ID
Format: int64
query.modulestringRequired within parentMaximum length: 25

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternativeRepresents the response schema for a successful Custom View deletion.
Additional keys: not allowed
$ (anyOf 1).custom_viewsarrayRequired within parentRepresents the list of Custom Views deleted successfully.
Maximum items: 200
$ (anyOf 1).custom_views[]ModelEach itemExpand Delete Custom Views — response body — custom views custom views item
$ (anyOf 2)objectAlternativeRepresents the multi-status response for the delete operation, containing a mix of success and failure items.
Additional keys: not allowed
$ (anyOf 2).custom_viewsarrayRequired within parentRepresents the list of Custom View deletion results, including both successful and failed items.
Maximum items: 200
Minimum items: 2
$ (anyOf 2).custom_views[]JSONEach itemRepresents a deletion result item, which can be either a success or a failure response.
$ (anyOf 2).custom_views[] (anyOf 1)ModelAlternativeExpand Delete Custom Views — response body — custom views custom views item
$ (anyOf 2).custom_views[] (anyOf 2)ModelAlternativeExpand Delete Custom Views — response body — custom views custom views item value
$ (anyOf 2).custom_views (allOf 1)JSONAll variants applyRepresents a successful deletion item for a Custom View.
$ (anyOf 2).custom_views (allOf 2)JSONAll variants applyRepresents a deletion failure item for a Custom View.

Referenced models: Delete Custom Views — response body — custom views custom views item value, Delete Custom Views — response body — custom views custom views item

Delete Custom Views — response body — custom views custom views item value
FieldTypePresenceDescription and constraints
$JSONRootRepresents the deletion failure details for a Custom View, containing the error code, status, message, and additional context.
$ (anyOf 1)ModelAlternativeExpand Delete Custom Views — response body — custom_views / custom_views / item / value / code: INVALID DATA, status: error
$ (anyOf 2)ModelAlternativeExpand Delete Custom Views — response body — custom_views / custom_views / item / value / code: NOT ALLOWED, status: error

Referenced models: Delete Custom Views — response body — custom_views / custom_views / item / value / code: INVALID DATA, status: error, Delete Custom Views — response body — custom_views / custom_views / item / value / code: NOT ALLOWED, status: error

Delete Custom Views — response body — custom views custom views item
FieldTypePresenceDescription and constraints
$objectRootRepresents the successful deletion response for a Custom View, including the status, code, and confirmation message.
Additional keys: not allowed
codestringRequired within parentRepresents the success code for the deletion operation.
Possible values:
**SUCCESS** - The Custom View deletion completed successfully.
Known values: SUCCESS
detailsModelRequired within parentExpand Custom View creation — response body — custom views custom views item details
messagestringRequired within parentRepresents the success message for the deletion operation.
Maximum length: 255
statusstringRequired within parentRepresents the status of the deletion response.
Possible values:
**success** - The operation was successful.
Known values: success

Referenced models: Custom View creation — response body — custom views custom views item details

Delete Custom Views — response body — custom_views / custom_views / item / value / code: INVALID DATA, status: error
FieldTypePresenceDescription and constraints
$objectRootRepresents the error details returned when the Custom View ID provided for deletion is invalid or the view has already been deleted.
Additional keys: not allowed
codestringRequired within parentRepresents the error code for the invalid data error.
Possible values:
**INVALID_DATA** - The Custom View ID in the request is invalid or already deleted.
Known values: INVALID_DATA
detailsobjectRequired within parentRepresents the additional details about the invalid Custom View ID.
Additional keys: not allowed
details.idstringRequired within parentRepresents the ID of the invalid or already-deleted Custom View.
Format: int64
Maximum length: 25
messagestringRequired within parentRepresents the error message describing the invalid data issue.
Maximum length: 255
statusstringRequired within parentRepresents the status of the response.
Possible values:
**error** - The request encountered an error.
Known values: error
Delete Custom Views — response body — custom_views / custom_views / item / value / code: NOT ALLOWED, status: error
FieldTypePresenceDescription and constraints
$objectRootRepresents the error details returned when a Custom View cannot be deleted due to active associations.
Additional keys: not allowed
codestringRequired within parentRepresents the error code for the not allowed deletion.
Possible values:
**NOT_ALLOWED** - The Custom View cannot be deleted because it has active associations.
Known values: NOT_ALLOWED
detailsModelRequired within parentExpand Custom Views — response body — custom_views / custom_views / item / value / code: NOT ALLOWED, status: error details
messagestringRequired within parentRepresents the error message describing why the deletion is not allowed.
Maximum length: 255
statusstringRequired within parentRepresents the status of the response.
Possible values:
**error** - The request encountered an error.
Known values: error

Referenced models: Custom Views — response body — custom_views / custom_views / item / value / code: NOT ALLOWED, status: error details

Custom View creation — response body — custom views custom views item details
FieldTypePresenceDescription and constraints
$objectRootRepresents the ID details for a created or affected resource.
Additional keys: not allowed
idstringRequired within parentRepresents the unique ID of the created or affected resource.
Format: int64
Maximum length: 25
Custom Views — response body — custom_views / custom_views / item / value / code: NOT ALLOWED, status: error details
FieldTypePresenceDescription and constraints
$objectRootRepresents the details of associations that prevent the deletion of a Custom View, including the association type and the list of associated resources.
Additional keys: not allowed
associationsarrayRequired within parentRepresents the list of associations that prevent the deletion of the Custom View.
Maximum items: 50
associations[]objectEach itemRepresents an association entry containing the association type and the list of associated resources.
Additional keys: not allowed
associations[].resourcesarrayRequired within parentRepresents the list of resources associated with this association type.
Maximum items: 100
associations[].resources[]objectEach itemRepresents a resource that prevents deletion when associated with the Custom View.
Additional keys: not allowed
associations[].resources[].idstringRequired within parentRepresents the unique identifier of the associated resource.
Format: int64
Maximum length: 25
associations[].resources[].namestringRequired within parentRepresents the display name of the associated resource.
Maximum length: 255
associations[].typestringRequired within parentRepresents the association type, indicating the feature or module the resource belongs to.
Maximum length: 50
idstringRequired within parentRepresents the unique ID of the Custom View that cannot be deleted.
Format: int64
Maximum length: 25

SDK function policy ID: zoho.deletecustomview. Catalog operation: deleteCustomView. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.