Delete a site from the command line - SmartPlant Foundation - IM Update 46 - Administration & Configuration

SmartPlant Foundation Server Manager Help

Language
English
Product
SmartPlant Foundation
Search by Category
Administration & Configuration
SmartPlant Foundation / SDx Version
10

Use SPFServerManager.exe with the /deletesite and /sn: arguments to delete a site from the server.

The following optional arguments are available:

/forcedelete:[true|false] - deletes the physical directories of the site, as well as log files.

/removedb:[true/false] - deletes the database associated with the site.

/su:[system user] - provides the system user of the database with the administrative privileges to delete the database (required when removedb is set to true).

/sp:[password] - provides the password of the system user of the database with the administrative privileges to delete the database (required when removedb is set to true).

/samusername: - provides the administrative Smart API Manager user name for deleting the site from the server.

/sampassword: - provides the administrative Smart API Manager password for deleting the site from the server.

This example deletes the site named SDx.

SPFServermanager.exe /deletesite /sn:SDx

This example deletes all folders:

SPFServermanager.exe /deletesite /sn:SDx /forcedelete:true

This example deletes all folders and the database:

SPFServermanager.exe /deletesite /sn:SDx /forcedelete:true /removedb:true /su:systemuser /sp:password

This example deletes the site, all folders, and the database and service and identity provider for a SAM server:

SPFServermanager.exe /deletesite /sn:SDx /forcedelete:true /removedb:true /su:systemuser /sp:password /samusername:sa /sampassword:1