According to this link (Interaction Types | SmartThings Developers), it is difficult to process the data on our server because we do not know which device is deleted in the request part during the operation.
Is there a way to know which devices were deleted from Smartthings?
Welcome back to the SmartThings Community, @notdef14!
I asked the team about this.
The “integration-deleted” is triggered when all the related devices are deleted or when we remove the Connector from “Linked services”.
However, if the user deletes a device on the ST side, it will be added back thanks to the periodic discovery process (every 24 hrs). After discovery, the “stateRefresh” interaction type is executed and the ST platform expects to get a response for all devices that it requested status for.