Skip to main content

Clean Output Path

Specifies whether the output folder for the SSDT (SQL Server Data Tools) project should be cleared during the build process.

When enabled (the default), the SSDT output folders are deleted before the projects are generated, so the output contains only files from the current build. When disabled, this setting deletes nothing, and files that an earlier build left in the SSDT output folders are not deleted unless the Clean Output Folder option of the build empties the output folder first.

When to Change This Setting​

Keep the default Y for a reproducible output that always reflects the current metadata. To keep manually adjusted default artifact scripts, which Overwrite External Table Defaults leaves in place when it is off, disable this setting and the Clean Output Folder option of the build, because a folder that is cleaned first loses them.

SettingInteraction
Output PathA second folder that is cleaned and regenerated, used only when the Clean Output Folder option of the build is off
Overwrite External Table DefaultsKeep-existing behavior for default artifact files only applies when the folder is not cleaned

Notes​

  • This setting is part of the SSDT settings category.
  • The default value for this setting is Y.