How can I delete item from cosmos Db document. I am trying below query but no luck.
delete from c where c.ode = '21423423'
How can I delete item from cosmos Db document. I am trying below query but no luck.
delete from c where c.ode = '21423423'
If you are using the Node.JS API, you can use the command:
container.item(id, partitionId).delete()
I recognize that there are many other APIs, but when I was trying to figure out how to do this for NodeJS this question came up but did not help me and this is the only API I know how to use / have time to answer.
The SQL API does not provide facilities for delete, this must be done through the REST API, Storage Explorer etc.
In addition, I saw the official reply that the delete function is not yet supported.