Expand my Community achievements bar.

SOLVED

Dispatcher flush path folder getting deleted along with files

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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



Arun Patidar

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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



Arun Patidar