1. List all simulators
Find out all simulators
xcrun simctl list
Find out active simulator
xcrun simctl list | grep Booted
You will get the result like:
$ xcrun simctl list |grep Booted
iPhone 11 (AE8852AB-378E-47FB-BD23-4CF77BFBC6DC) (Booted)
Now you can erase the simulator by
xcrun simctl erase AE8852AB-378E-47FB-BD23-4CF77BFBC6DC
2. Delete the app from active simulator
xcrun simctl uninstall booted your.bundle.id
Or
xcrun simctl uninstall AE8852AB-378E-47FB-BD23-4CF77BFBC6DC your.bundle.id
reference:
https://medium.com/xcblog/simctl-control-ios-simulators-from-command-line-78b9006a20dc