Azure Functions Update & Delete Http Trigger in C# to update and delete Todo list items in Cosmos DB - Microsoft Q&A

Can anyone share the working code to update & delete http trigger azure functions to update and delete to-do list items in Cosmos DB? I could not find any code that works for update & delete. The Read & Write works fine though