Skip to content

deleteApexLogsViaCollections

deleteApexLogsViaCollections(connection, logIds, onChunkComplete?): Promise<ApexLogsPurgeResult[]>

Defined in: packages/simply-apex-core/src/apexLogsPurge.ts:74

Deletes ApexLog records through the core connection’s SObject Collections resource, 200 records per call.

Deliberately not .tooling: ApexLog is exposed on both APIs, but only core REST implements the Collections resource a bulk delete needs. /tooling/composite/sobjects does not exist and answers 404 “The requested resource does not exist”.

Connection

string[]

(purged, total) => void

Called after each 200-record chunk is deleted, with the running total — a caller (the CLI) can use this to update a progress indicator. Optional; has no effect on the delete itself.

Promise<ApexLogsPurgeResult[]>