Deletealternatedomain: Stsadm operation (Windows SharePoint Services)
Updated: December 13, 2007
Applies To: Windows SharePoint Services 3.0
Topic Last Modified: 2007-12-10
Deletes an internal URL from a URL zone.
This operation is equivalent to the Edit Internal URLs user interface setting that is located on the Alternate Access Mappings page of the SharePoint Central Administration Web site.
For more information, see Configure alternate access mapping (Windows SharePoint Services).
stsadm -o deletealternatedomain
-url <valid URL>
A valid URL, such as http://server_name or http://sharepoint:1234
URL of the Web application.
In Windows SharePoint Services 3.0, this parameter is ignored. It remains for backward compatibility.
A valid URL, such as "http://sharepoint.courses.contoso.com:1234"
The internal URL that you want to delete.
Because the public URL of a zone also serves as an internal URL of a zone, and because a Web application must always have a public URL for the Default zone, you cannot delete the last internal URL for the Default zone.
In Windows SharePoint Services 2.0, an internal URL was referred to as an incoming URL and a public URL was referred to as an outgoing URL.
If a reverse proxy server or load balancer receives a request from the user as https://www.contoso.com and forwards it to the server running Windows SharePoint Services 3.0 as http://sharepoint.courses.contoso.com:1234, the administrator would configure the following URLs for a SharePoint Web application:
Internal URL: http://sharepoint.courses.contoso.com:1234
Public URL: https://www.contoso.com
For this example, http://sharepoint:1234 and http://sharepoint.courses.contoso.com:1234 are already alternate access mappings (AAM) URLs that are assigned to a Web application that are using the Internet zone.
To delete the http://sharepoint.courses.contoso.com:1234 internal URL, use the following syntax:
stsadm -o deletealternatedomain -incomingurl http://sharepoint.courses.contoso.com:1234
To confirm the change to the internal URL, use the following syntax:
stsadm -o enumalternatedomains -url http://sharepoint:1234