-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sfdx force:source:delete does not work on production orgs #971
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
This issue has been linked to a new work item: W-9137776 |
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments. |
@forcedotcom Any update here? We don't have visibility on work items. |
@fransf-wtax - We first want to promote the source plugin to the production CLI core plugins. Once that work is complete the next scheduled work will be to add the source delete command to it, but also to support destructive changes as part of a source:deploy. My guess is it will be delivered in late July or early August. |
This was fixed in latest v7.120.0, release notes: |
Sorry but this still seems to be happening even in the latest release. And command with error: |
The error remain unresolved in the latest release: Error: |
force:source:delete fails and wouldn't run on production orgs.
Steps to Reproduce:
sfdx force:source:delete -m "CustomField:testobject__c.Admin_Badges__c"
throws error:
{
"status": 1,
"name": "sf:INVALID_OPERATION",
"message": "INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations",
"exitCode": 1,
"commandName": "SourceDeleteCommand"
}
sfdx force:source:delete -m "CustomField:trailheadapp__Trailhead_User_Data__c.Admin_Badges__c" -l RunLocalTests
throws error:
{
"status": 1,
"name": "Error",
"message": "Unexpected arguments: -l, RunLocalTests\nSee more help with --help",
"exitCode": 1,
"commandName": "SourceDeleteCommand",
"stack": "Error: Unexpected arguments: -l, RunLocalTests
}
tried other possibilities with --checkonly flag etc.. but none help.
tried with latest and greatest cli & plugin version.
Couple other notes:
The text was updated successfully, but these errors were encountered: