When attempting to delete a solution in Dynamics 365, you encounter the following error:
"The record could not be deleted because of an association
The record cannot be deleted because it is associated with another record."
This error can occur if you are trying to delete a solution which contains a component that is still used by another component.
Example: If the solution includes an image web resource and that image is used by a Theme, you would encounter this error when trying to delete that solution.
Before attempting to delete the solution, remove any references from the included components to components in other solutions.
In the example from the Cause section, you would need to follow these steps:
Access the Dynamics 365 web application as a user with the System Administrator or System Customizer security role.
Navigate to Settings, Customizations, and Themes.
Open the theme that uses the image web resource as the logo.
Use the Logo lookup field to remove the reference to the image web resource that is part of the solution you are trying to delete and save the changes.
Try to delete the solution again.