Reinstalling or cleaning of iOS real device application data

How can I re-install an application from an iOS device using the Appium? Or delete data from the application before each test method is run? Because of the specificity of the application, I need that before each test the application is cleaned or fully reinstalled on a real device.

capabilities.setCapability (“noReset”, false);
driver.closeApp () driver.launchApp ()
driver.resetApp ()
does not work. The application starts without cleaning the data.

I’m using Appium 1.7.1