I use Azure with node js App Service. When i try to delete empty folder using ftp or kudu app in node_modules folders i get error: 409 Conflict: Cannot delete directory. It is either not empty or access is not allowed. This folder is totally empty. How i can delete it?
Asked
Active
Viewed 1.2k times
12
-
Have you tried suggested solution of this issue from https://social.msdn.microsoft.com/Forums/security/en-US/805a4b90-963b-4ff2-ad15-218e496e9a9c/cant-remove-a-folder-in-azure-app-service?forum=windowsazurewebsitespreview ? – Abdul Rauf Sep 22 '17 at 10:52
-
yes and it not works – DarDev Oct 11 '17 at 08:29
5 Answers
20
Check AppSettings of Web App and delete the setting ‘WEBSITE_RUN_FROM_PACKAGE’ or changing the setting value to 0.
0 - write mode; 1 - read-only mode

sajid irfan
- 337
- 4
- 11
3
There is a Process explorer tab in the header.
- Open Process explorer
- Kill the task that's using the folder or file
- You will be able to delete the folder in question
This is how I resolved the same issue.

Drozdovas
- 41
- 1
2
Here is my solution: adding this option to your step deploying to the app service. Hope it would help

Stefan Becker
- 5,695
- 9
- 20
- 30

Nguyễn Vũ Đức Anh
- 31
- 2
0
You may use the command api to do that. Craft a CMD or PowerShell command that'll clean your wwwroot and then execute it.

CHEEKATLAPRADEEP
- 12,191
- 1
- 19
- 42
0
I tried all of the upper solutions and didn't worked. Blackhole! I stopped the app service, removed the files and started again. It worked.

pictoru
- 722
- 6
- 17