Removing of old project

When i click on project it loads that in gantt chart usin parse.
But if go back and load another project it shows new project as well as old project.
how to remove old project data and show only currently loaded.

You can use clearAll() method to remove all data: