How to set Touch ID Enrolled State (on / off) in Simulator

When I run my iOS tests the Touch ID Enrolled State is on. I’d like to run my tests with it off as when device security is disabled my app asks the user to set an app password.

How do I set up Appium to initialize Simulator with Touch ID off?

below apple script will toggle touch id

activate application “Simulator”
tell application “System Events” to tell process “Simulator”
try
click menu item “Toggle Enrolled State” of menu 1 of menu item “Touch ID” of menu 1 of menu bar item “Hardware” of menu bar 1
end try
end tell
tell application “System Events” to tell process “Simulator”
try
click menu item “Touch ID Enrolled” of menu 1 of menu bar item “Hardware” of menu bar 1
end try
end tell

to do it programmatically run it from terminal

for more details refer https://github.com/appium/appium/issues/7347