Deleting a Site

When you delete a site, the site configuration data is deleted from the Administration database. After you delete a site, you cannot undo the deletion.

To delete a site

To delete the databases used by the site

To delete the OLAP databases for the site

To delete the virtual directories for the site

To delete the site folders and files

To delete the Direct Mailer jobs

To delete a site

  1. Click Start, point to Programs, point to Microsoft Commerce Server 2002, and then click Commerce Server Manager.
  2. Expand Commerce Server Manager, and then expand Commerce Sites.
  3. Right-click the site to be deleted, and then select Delete from the drop-down list.

To delete the databases used by the site

  1. Click Start, point to Programs, point to Microsoft SQL Server, and then click Enterprise Manager.

    Ee797734.note(en-US,CS.20).gif Note

    • In SQL Server Enterprise Manager, make sure that SQL Server is running (the icon in the Enterprise Manager window displays a green light). If it is not running, right-click the name of the SQL Server computer, and then click Start.
  2. Expand the nodes to the following path: \Microsoft SQL Servers\SQL Server Group\SQL Server Name\Databases.

  3. Right click the database you want to delete, click All Tasks, and then click Detach Database.

  4. In the Detach Database dialog box, click Clear, and then click OK. Repeat this step for all of the databases you want to delete.

    By detaching the databases first, you can delete the connection strings you have to them.

  5. Use Windows Explorer to navigate to the folder \Program Files\Microsoft SQL Server\MSSQL\Data, and delete the database file.

    Ee797734.important(en-US,CS.20).gif Important

    • You must delete the database file after detaching the database or your Commerce Server installation will not function properly.

To delete the OLAP databases for the site

  1. Click Start, point to Programs, point to Microsoft SQL Server, point to Analysis Services, and then click Analysis Manager.
  2. Expand the nodes to the following path: \Analysis Servers\SQL Server Name.
  3. Right-click the database you want to delete, and then click Delete.
  4. Click Yes to confirm folder deletion for each database you want to delete.
  5. Repeat Steps 3 and 4 for each database you want to delete.

To delete the virtual directories for the site

  1. Click Start, point to Administrative Tools, and then click Internet Services Manager.
  2. Expand the nodes to the following path: \<computer name>\<IIS Web site name>.
  3. Right-click the virtual directories you want to delete (for example, Retail or Supplier), and then click Delete.
  4. Click Yes for each virtual directory you want to delete.
  5. Repeat Steps 3 and 4 for each virtual directory you want to delete.

To delete the site folders and files

  1. Using Windows Explorer, navigate to the directory (for example, C:\Inetpub\wwwroot) where the site files are installed.
  2. Right-click the folder you want to delete, and then click Delete.
  3. Click Yes for each folder you want to delete.
  4. Repeat Steps 2 and 3 for each folder you want to delete.

To delete the Direct Mailer jobs

  1. Click Start, point to Programs, point to Microsoft SQL Server, and then click Enterprise Manager.
  2. Expand the nodes to the following path: \Microsoft SQL Servers\SQL Server Group\SQL Server Name\Management\SQL Server Agent\Jobs.
  3. The Direct Mailer jobs appear in the right pane of SQL Server Enterprise Manager.
  4. Select the Direct Mailer job(s) you want to delete, and then click the Delete button on the toolbar.

See Also

Deleting a Resource from a Site

Deleting an Application from a Site

Removing a Web Server from an Application

Copyright © 2005 Microsoft Corporation.
All rights reserved.