You can use Web Application Management Console to delete a data source connection string from the .config file.
To delete a connection string:
In the Web Application Management Console, open the Application Server web.config file by clicking Open Web Application and selecting the Application Server from the list of web applications.
Opening the Application Server web.config file is required to access the connection strings configuration utility, even if you are not configuring the Application Server.
Select Connection Strings | View Contexts. The connection strings dialog box is displayed.
If you are configuring an application or service other than the Application Server, follow these additional steps to open the appropriate .config file:
The connection strings dialog box allows you to remove connection strings.
- Select File | Configuration Path.
Browse to open the .config file for the application or service.
You can also apply the -CONFIGPATH command line switch to the Web Application Management Console shortcut to directly open a .config file in the connection strings dialog box. See the command line switches section of the Web Application Management Console documentation for more information.
- Select the item you want to delete from the Data Sources list.
- Click Remove. The data source is removed from the list.
- Select File | Save to save the .config file.
- Select File | Close to exit the connection strings dialog box.