0

Is it possible to delete files using WebDav by file name pattern?

For example, I want delete all files with prefix hello (hello_*)

jww
  • 97,681
  • 90
  • 411
  • 885
fedor.belov
  • 22,343
  • 26
  • 89
  • 134

2 Answers2

2

Read this:

  1. WebDAV - Request “Show files in folder”?

  2. Getting a List of Folders (WebDAV)

  3. Deleting Items (WebDAV)

JScript supports regular expressions, so YES, it is possible.

Community
  • 1
  • 1
Ωmega
  • 42,614
  • 34
  • 134
  • 203
0

No, it's not possible. All you can do is retrieve all names, find the ones you want to delete, and submit a DELETE request for each one of them.

Julian Reschke
  • 40,156
  • 8
  • 95
  • 98