[Solved] How to delete a Product

Maybe you should first read the documentation of using CosmosDB: here On this page you can see how you can query your product and then delete this record from your collection: var query = client.CreateDocumentQuery<YourDocumentModel>(UriFactory.CreateDocumentCollectionUri(databaseName, collectionName), “<your sql>”, queryOptions); with this result you can update the object (yourDocumentModelObject) and remove the product from the subcategory. … Read more

[Solved] An unhandled exception occurred while processing the request in cosmos db and asp.net core

The stack trace points to a NotFound in OperationType Read, ResourceType Collection. This means that the Uri that you are passing, is not pointing to a collection that exists in that account. You are creating the Uri using: UriFactory.CreateDocumentCollectionUri(_azureCosmosDbOptions.Value.DatabaseId, “catlogdb”) Check the value of _azureCosmosDbOptions.Value.DatabaseId and verify it is valid and it’s the one you … Read more