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”.
Parameters
Section titled “Parameters”connection
Section titled “connection”Connection
logIds
Section titled “logIds”string[]
onChunkComplete?
Section titled “onChunkComplete?”(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.
Returns
Section titled “Returns”Promise<ApexLogsPurgeResult[]>