JDBC Driver for Zoho CRM

Build 25.0.9539

DeleteRecordsFromRecycleBin

Delete individual or all records from the recycle bin.

Procedure-Specific Information

Executing this stored procedure requires additional OAuth scopes. If you are switching to the v8 schema from another schema, you must reauthenticate with Zoho CRM. To reauthenticate, invalidate the previous persisted OAuthAccessToken by executing the 'RESET CREDENTIALS' query.

Permanently delete all or specific deleted records from the recycle bin. You can query the RecycleBin to fetch deleted records.

To delete specific records, supply the RecordIds parameter with a comma-separated string of record ids.

For Example:

EXEC DeleteRecordsFromRecycleBin RecordIds = '1170218000001543003,1170218000001543002,1170218000001543017';

To delete all records from the recycle bin.

EXEC DeleteRecordsFromRecycleBin;

When the number of records in the Recycle Bin exceeds 1000, including child records, the system schedules the deletion as a background job. If the count is 1000 or fewer, the system deletes the records immediately.

Input

Name Type Description
RecordIds String Comma-separated Ids of the records you want to delete. To empty the recycle bin, do not supply a value this parameter.

Result Set Columns

Name Type Description
Status String Indicates the outcome of the stored procedure.
Code String The code returned by the server.
Message String The message returned by the server.
RecordId String The Id of the deleted record.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9539