Add a deployment option that lets DM delete files on the target server that don't exist in the NuGet package any longer
I realize that this might be a double-edged sword, but I can think of scenarios where I'd want DM to delete files that once were deployed by DM, but have been removed from the current version of the NuGet package.
Mattias G commented
Commenting on my own suggestion here... I realize that if one doesn't need to keep anything in the target directory, one could just as well set the "RedGatePurgePackageDirectoryBeforeCopy" variable to true: http://www.red-gate.com/SupportCenter/content/Deployment_Manager/help/1.0/dm_variables
However, this isn't feasible in scenarios such as the following:
The target server contains:
The files in the root folder (foo) were installed by DM.
The files in foo\bar were generated by the the deployed application on the target machine.
In the next application version, the file foo\c.txt is dropped.
In this case I want DM to keep foo\bar\* but delete foo\c.txt