如何删除网站上的所有文件? [英] How to delete all the files on the site?

查看:109
本文介绍了如何删除网站上的所有文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为有一个问题是网站会保留一些文件或某些导致不良格式的内容,我尝试将网站还原为某个版本,但格式问题仍然存在。 我的想法是一些CSS或其他
文件在网站上保留旧版本,我想删除所有文件并重新发布,但我找不到办法做到这一点。在Visual Studio中,我可以逐个删除文件,而不是目录。我真的只是想删除所有文件/文件夹
和重新发布

解决方案
您可以使用Kudu控制台删除Azure Web App中的文件/文件夹。


要通过Kudu控制台访问网站/文件,请使用以下网址。


https://****.scm.azurewebsites.net/
(输入您的网站名称而不是****)


单击调试控制台 - > PowerShell打开控制台和文件,然后使用
选项删除文件/文件夹,如下所示。



有关详细信息,请参阅:

将KUDU与Microsoft Azure Web Apps一起使用

博客文章


删除旧文件后重新发布并检查。


I think there's an issue where the site is retaining some files or something that is causing undesirable formatting and I've tried reverting the site back to a version but the formatting issue is persisting.  My thoughts are that some CSS or other files are staying an older version on the site and I want to delete all the files and republish but I cannot find a way to do this. In Visual Studio I can delete files but one by one and not directories. I literally just want to delete all the files/folders and republish.

解决方案

You could use Kudu console to delete the files/folders in Azure Web App.

To access the site/files through the Kudu console use the below URL.

https://****.scm.azurewebsites.net/ (enter your website name instead of ****)

Click on the Debug Console -> PowerShell to open a console along with files, then delete the files/folders using the option available as shown below.

For more details refer to: Using KUDU with Microsoft Azure Web Apps and blog post.

Once you delete the old files republish and check.


这篇关于如何删除网站上的所有文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆