documentation/Reference/Configuration/Flyway Namespace/Flyway SQL Server Namespace/Flyway SQL Server Clean Namespace/Flyway SQL Server Clean Mode Setting.md
This configures how the clean command works to enable Flyway to delete objects beyond the schemas specified in the schemas configuration option.
default : The default behaviorschema: All database schemas will be cleaned, excluding built-in schemas.all: All database objects will be dropped, including all schemasall modeXML Schema Collections (at the schema-level)Column encryption keysColumn master keysSymmetric keysEvent notificationsFulltext stoplistsRegistered search property listsApplication roles and Database roles that aren't 'fixed roles' (built-in roles)flyway.sqlserver.clean.mode is set to schema or
all, and schemas is also configured.
There is also a
flyway.sqlserver.clean.schemas.exclude parameter which takes an array of schemas to exclude.
These schemas won't be dropped or cleaned in schema or all mode.
String
default
This can't be configured via Flyway Desktop, although it will be honoured.
[flyway.sqlserver.clean]
mode = "all"
flyway.sqlserver.clean.mode=all
flyway.sqlserver.clean.schemas.exclude=schema1,schema2