@AMANATH_ULLAH
This will be good addition where a person can do this through UI.
What we have implemented in our project, a jenkins pipeline with an input parameter where person can input the path(cache to be cleared) and run the script. It will take 1 sec. to complete.