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