How to Clean or Purge SugarCRM cache folder programmatically?

Hello Friends,

I have made one zip file and try to install using Module Loader.

It actually installs one module into SugarCRM, say module name "XYZ"

After installation, SugarCRM crashes,

Then I have to clean and delete everything from cache folder.

After deleting evrything from cache, the module started working perfectly.

What could be the problem?

OR

How can I Clean or Purge SugarCRM cache folder programmatically?