简体   繁体   中英

How do I remove a site from IIS7 using JavaScript?

I've been searching the Internet for a way to remove a site from IIS7 using JavaScript. I've found, and used, a lot of examples on how to create a site and applications using JavaScript but not a single example on how to delete a site!

I figured that since the .Net System.Configuration.ConfigurationElementCollection-class has a BaseRemoveAt()-method, then there should be a corresponding method in JavaScript, but I have not found any.

Does anyone know how to remove a site from IIS7 using JavaScript?

Please help!

/Petteri

The method you were looking for is called DeleteElement . See an example of its usage here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM