Skip to content

hardis:project:clean:references

Description

Remove unwanted references within sfdx project sources

Parameters

Name Type Description Default Required Options
config
-c
option Path to a JSON config file or a destructiveChanges.xml file
debug
-d
boolean Activate debug mode (more logs)
flags-dir option undefined
json boolean Format output as json.
skipauth boolean Skip authentication check when a default username is required
type
-t
option Cleaning type all
caseentitlement
dashboards
datadotcom
destructivechanges
localfields
productrequest
entitlement
flowPositions
sensitiveMetadatas
minimizeProfiles
websocket option Websocket host:port for VsCode SFDX Hardis UI integration

Examples

$ sf hardis:project:clean:references
$ sf hardis:project:clean:references --type all
$ sf hardis:project:clean:references --config ./cleaning/myconfig.json
$ sf hardis:project:clean:references --config ./somefolder/myDestructivePackage.xml