Skip to content

Unable to delete ApexLog records in bulk #3400

@zenibako

Description

@zenibako

Expected result

The command should have deleted all Apex debug logs from the org.

Actual result

I get an error and the debug logs are never deleted.

Additional information

❯ sf data query --query "SELECT Id FROM ApexLog" --output-file logs.csv --result-format csv && sf data delete bulk --sobject ApexLog --file logs.csv && rm logs.csv
59 records written to logs.csv
Querying Data... done
───── Deleting data (async) ─────
Stages:
1. Creating ingest job
2. Processing the job

▶ Creating ingest job…
✘ Creating ingest job (1.94s)


Elapsed time: 1.94s
Error (1): Cannot specify query parameters on this resource

System Information

CLI:
@salesforce/cli/2.106.6 darwin-arm64 node-v24.8.0

Plugin Version:
@cristiand391/oclif-carapace-spec-plugin 0.4.1 (user)
@oclif/plugin-autocomplete 3.2.34 (core)
@oclif/plugin-commands 4.1.32 (core)
@oclif/plugin-help 6.2.32 (core)
@oclif/plugin-not-found 3.2.67 (core)
@oclif/plugin-plugins 5.4.46 (core)
@oclif/plugin-search 1.2.28 (core)
@oclif/plugin-update 4.7.4 (core)
@oclif/plugin-version 2.2.32 (core)
@oclif/plugin-warn-if-update-available 3.1.46 (core)
@oclif/plugin-which 3.2.39 (core)
@salesforce/cli 2.106.6 (core)
agent 1.22.2 (user)
apex 3.6.19 (core)
api 1.3.3 (core)
auth 3.9.4 (core)
code-analyzer 5.4.0 (user)
data 4.0.55 (core)
deploy-retrieve 3.23.1 (core)
dev 2.5.1 (user)
info 3.4.85 (core)
limits 3.3.66 (core)
marketplace 1.3.8 (core)
org 5.9.28 (core)
packaging 2.20.1 (core)
schema 3.3.81 (core)
settings 2.4.46 (core)
sobject 1.4.72 (core)
telemetry 3.6.55 (core)
templates 56.3.63 (core)
trust 3.7.113 (core)
user 3.6.38 (core)
@salesforce/sfdx-scanner 4.12.0 (user)
apex-code-coverage-transformer 2.13.3 (user)
apextestlist 1.13.5 (user)
sfdx-git-delta 6.19.0 (user)
SF ENV. VARS.
SF_AUTOUPDATE_DISABLE,true
SF_DISABLE_AUTOUPDATE,true
SF_UPDATE_INSTRUCTIONS,Use "npm update --global @salesforce/cli" to update npm-based installations.
Windows: false
Shell: zsh
Channel: stable

Diagnostics

✅ pass - salesforcedx plugin isn’t installed
✅ pass - you don't have any linked plugins
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.yarnpkg.com
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org/
✅ pass - using latest or latest-rc CLI version
✅ pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion
❌ warn - [@salesforce/plugin-deploy-retrieve] default target DevHub max apiVersion matches default target org max apiVersion
❌ warn - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches default target org max apiVersion
✅ pass - can access: https://test.salesforce.com
✅ pass - can access: https://appexchange.salesforce.com/services/data
✅ pass - can access: https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-win32-x64-buildmanifest
❌ fail - [@salesforce/plugin-auth] CLI supports v2 crypto

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions