开发者

How to delete a sharepoint web application using stsadm tool?

Is there a command to delete the entire web application (database, iis sites etc) using the Sharepoint admin tool?

I know the same 开发者_运维知识库can be done in the central admin, but i have a need to automate this process as we want our build servers to rebuild the sharepoint site from scratch each night.


You should be able to do that with the stsadm unextendvs operation.

stsadm -o unextendvs -url http://MySite -deletecontent -deleteiissites


In addition to the unextendvs stsadm command you will need to drop the table in SQL. Using this command to remove the content database will remove the link from the content database to the SharePoint web application, but I don't think it will actually drop the SQL table.

So if you are running this every night be sure to either re-use the same content database or also script the table drop to ensure your SQL environment does not end up with abandoned tables.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜