purgeContent method
dynamic
purgeContent()
Implementation
purgeContent() async {
try {
print('Clean content root');
Directory appDir = await getApplicationDocumentsDirectory();
Directory httpContentDirectory = Directory('${appDir.path}/www/content/');
if (await httpContentDirectory.exists())
await httpContentDirectory.delete(recursive: true);
} catch (ex) {}
}