Dispatcher flush path folder getting deleted along with files

adeora

26-02-2020

We want to delete all the files inside en folder and not a single file something on the lines of /content/geometrixx/en/* and not delete the folder en along with it.

 

We have different permutations and combinations of CQ-Action and CQ-Path of /usr/bin/curl -k -X POST -s -H'CQ-Action: Delete' -H "CQ-Path:/content/path/en" -H'Referer: about:flush' https://servername/dispatcher/invalidate_only

 

Kinldy Help!!!

 

Regards

Arvind

Accepted Solutions (1)

Accepted Solutions (1)

Arun_Patidar

MVP

27-02-2020

Try with

 

/usr/bin/curl -v --header 'Host: dispflush' \
-H "CQ-Action: Delete" \
-H "CQ-Handle: /content/path/en" \
-H "CQ-Path: /content/path/en" \
-H "Content-Length: 0" \
-H "Content-Type: application/octet-stream" \
http://localhost:80/dispatcher/invalidate.cache