Erase app data on iOS simulator or real devices
On iOS, erase all content and settings is how you wipe everything and then push your app again. 

xcrun whatever....


The above xcrun is just useful to install and run an app as opposed to what you want which is to manage settings. See this developer article - at the very end it explains your settings persist even with app removal - so you’d need to clean on the simulator or write your app to reset settings with specific code.

https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/UserDefaults/Preferences/Preferences.html#//apple_ref/doc/uid/10000059i-CH6-SW5

How effective these three options is really depends on your specific code, however. Erase all content always works.