Hi @Abirami_SD ,
As per the documentation, you should not use "/*" at the end of the target path. Something like below:
prop.rules.hierarchical=[
"/content/dam/.*\.(png|jpg)=/content/mysite"
]
This would clear all under /content/mysite.
In your configuration, you have used
prop.rules.hierarchical=[ "/content/dam/.*\.(png|jpg)=/content/mysite/*" ] an extra /* at the end of the target path.
Remove it and test. It might fix the problem. Reference Link: https://adobe-consulting-services.github.io/acs-aem-commons/features/dispatcher-flush-rules/index.ht...