Delete a Configuration Database
Scenario/Problem: You want to remove a configuration database from the farm and delete the actual SQL Server database and data.
Solution: Use the Remove-SPConfigurationDatabase
cmdlet.
The Remove-SPConfigurationDatabase
cmdlet enables you to delete the current configuration database. You do not need to pass any parameters into this cmdlet, as shown in Listing 7.9.
Remove-SPConfigurationDatabase
Tip
Run the Remove-SPConfigurationDatabase
cmdlet with the -WhatIf
switch parameter to display the actual configuration database that will be removed.
This cmdlet already knows which configuration database the current server and SharePoint farm are ...
Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.