When your app allocates memory iOS automatically free requested amounts of memory by alerting other apps with special messages (memory warnings) and by unloading other apps. If your app requesting too much memory - it will be unloaded by iOS with special crash type.
There is no way to purge memory with user request on iOS platphorm. In order of public api terms.