Flexagon acquires Rookery Software to strengthen its offering for its Oracle clients. Learn more.

Request A Demo
Back to All Blog Articles

Salesforce Destructive Package Deployments in FlexDeploy

With FlexDeploy’s 6.0.0.2 release, you can now delete components from Salesforce Orgs, along with retrieving and deploying to Salesforce Orgs. This feature — Support of Destructive Packages — helps you keep your Org cleaned by removing retired or not required components.

With FlexDeploy, achieving this is very simple and as easy as checking a checkbox for one or more files in your package. In this blog, I will give details on how to achieve this. If you have not already set up your Salesforce instance in FlexDeploy, start with the setup as described here.

Define the Package

The process of defining or creating the package is the same for destructive changes as it is for regular deployments. You can simply create a new package and add files. Or, if you have an existing package and would like to select files for deletion, just open the Package by clicking on it.

Define the package of files for deletion.

Both Org to Org package deployment and SCM to Org package deployments are supported.

Marking the File as Destructive

Once you are in the Package screen, you can add additional files that aren’t already in your package. If you have the files, you can directly mark them as destructive.

Mark the files for destruction.

Next, to mark the files for deletion, we need to make the files as a Destructive change. This is the key step for this action. You need to click on the Kebab menu () at the end of the file row. And then select “Set Destructive.”

Identify which files are being selection for destruction.

If you need to mark more files, you can repeat the process or filter the files using the magnifying glass. Then, select the down arrow menu next to the file count and either mark files as destructive or remove the destructive flag.

Integrate with any of the tools you use today or maybe tomorrow.

By using FlexDeploy, organizations establish an automated and repeatable process for building, packaging, and safely deploying code, APIs, meta-data changes, and data migrations from development through test to production environments.

F
Easily mark files for destruction or take away the destruction flag.

Please make sure that you really want to delete the files from you Salesforce Org before making these destructive.

Deploy the Destructive Package

Deploying a destructive package is exactly the same as any other package deployment. You can create a version by using the Build button and then submit the Deployment to any Salesforce Org. You can take advantage of CI/CD pipelines by adding the package to a release to automate the promotion of the destructive package along the environment.

Deploying a destructive package is exactly the same as any other package deployment.

In FlexDeploy, these destructive packages are tracked and the state of the files is handled automatically. FlexDeploy tracks who deleted what, when, who approved, etc. for compliance and audit requirements. You don’t need to do anything to achieve this visibility.

FlexDeploy tracks who deleted what, when, who approved, etc. for compliance and audit requirements.

That’s it!

It is simple to delete the files you don’t need in your Salesforce Org. With FlexDeploy you can migrate some metadata files and delete others, all in the same release. You can safely delete one or many with Validate before deleting. If you need files back for some reason, you can uncheck the flag and simply deploy to re-create the files. You can achieve high-quality DevOps with your Salesforce application with built-in internal or external approvals, notifications, and Test Automation integration.

A Comprehensive, Integrated Approach to DevOps

Tell us about your integration challenges. We’ve got you covered.

Related Resources

5 Ways FlexDeploy and ConfigSnapshot Revolutionize Oracle E-Business Suite

Oracle EBS Tools Update Oracle E-Business Suite (EBS) continues to support critical business functions, from financial management to supply chain ...

FlexDeploy and Tririga: Streamlining IT for a Global Fast-Food Leader

Customer Overview A global leader in the fast-food industry successfully implemented FlexDeploy for Oracle several years ago, realizing the benefits ...

Effective Configuration Management White Paper  

Unlock the Full Potential of Configuration Management   Discover how to manage, control, and track changes with precision throughout your system’s ...

Join DevOps leaders across the globe who receive analysis, tips, and trends in their inbox