API:Purge/Sample code 1