SOLVED

Powershell Command to delete contacts in Microsoft Bookings.

%3CLINGO-SUB%20id%3D%22lingo-sub-1512241%22%20slang%3D%22en-US%22%3EPowershell%20Command%20to%20delete%20contacts%20in%20Microsoft%20Bookings.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512241%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20using%20Microsoft%20Bookings%20to%20allow%20patients%20to%20book%20appointments%20at%20our%20medical%20facility.%20We%20are%20not%20interested%20in%20storing%20any%20of%20the%20information%20and%20want%20to%20purge%20it%20quickly.%20The%20'contact'%20information%20that%20is%20stored%20is%20quite%20laborious%20to%20delete%20a%20single%20item%20at%20a%20time.%20Is%20there%20a%20powershell%20command%20that%20woudl%20accomplish%20the%20same%20task%3F%20we%20have%20multiple%20locations%20in%20Bookings%20that%20all%20need%20to%20be%20done.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1512241%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Bookings%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1512423%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20Command%20to%20delete%20contacts%20in%20Microsoft%20Bookings.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512423%22%20slang%3D%22en-US%22%3E%3CP%3EPowerShell%20wont%20help%20you%20with%20that.%20Take%20a%20look%20at%20the%20Graph%20API%20endpoints%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fbooking-api-overview%3Fview%3Dgraph-rest-beta%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fbooking-api-overview%3Fview%3Dgraph-rest-beta%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1517629%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20Command%20to%20delete%20contacts%20in%20Microsoft%20Bookings.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1517629%22%20slang%3D%22en-US%22%3EThsnk%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1517632%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20Command%20to%20delete%20contacts%20in%20Microsoft%20Bookings.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1517632%22%20slang%3D%22en-US%22%3EThank%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2160829%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20Command%20to%20delete%20contacts%20in%20Microsoft%20Bookings.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2160829%22%20slang%3D%22en-US%22%3EWell%2C%20that%20was%20a%20huge%20project...but%20I%20did%20manage%20to%20get%20a%20Visual%20Studio%20application%20to%20work%2C%20and%20I%20can%20delete%2010%20at%20a%20time.%3C%2FLINGO-BODY%3E
New Contributor

We are using Microsoft Bookings to allow patients to book appointments at our medical facility. We are not interested in storing any of the information and want to purge it quickly. The 'contact' information that is stored is quite laborious to delete a single item at a time. Is there a powershell command that woudl accomplish the same task? we have multiple locations in Bookings that all need to be done.

 

 

4 Replies
best response confirmed by MarkSmed (New Contributor)
Solution

PowerShell wont help you with that. Take a look at the Graph API endpoints: https://docs.microsoft.com/en-us/graph/api/resources/booking-api-overview?view=graph-rest-beta

Well, that was a huge project...but I did manage to get a Visual Studio application to work, and I can delete 10 at a time.