Microsoft Office 365 Room Deleted Within the Provider but Not Immediately Reflected on Appspace
Symptoms
If the Microsoft Office 365 room is deleted in O365, the room is not deleted immediately in Appspace.
Reason
When the O365 room is deleted through the provider, the Microsoft Places API is not stable, and the room will only disappear from the MSFT Places API after two or three days.
Therefore, Appspace doesn't trust the MSFT Places API due to its instability and inconsistency when changes happen on the customer O365 side (such as adding/updating/deleting rooms in O365). We only rely on MSFT Calendar API to determine if the room is deleted in O365.
However, once the O365 room is deleted through the provider, the room mailbox in O365 takes thirty days to be deleted. In other words, when the room mailbox has been deleted in O365, the MSFT Calendar API will return a 404 error response code back to us, only then will the provider room in Appspace will show as out of sync, and then it can be deleted from Appspace.
NOTE
The MSFT Calendar API that we trust:
https://graph.microsoft.com/v1.0/users/trainingexample@appspacesupport.com/calendar
The MSFT Places API returns nothing (the inconsistent API that we don't trust):
https://graph.microsoft.com/v1.0/places/microsoft.graph.room?$filter=emailAddress eq 'trainingexample@appspacesupport.com'
Solution
Unfortunately, we have no other recourse than to wait thirty days to delete the room from Appspace.

