Cosmos DB - Deleting a document

Author: Ben Mayo

How can I delete an individual record from Cosmos DB?

I can select using SQL syntax:

SELECT *
FROM collection1
WHERE (collection1._ts > 0)

And sure enough all documents (analogous to rows?) are returned

However this doesn't work when I attempt to delete

DELETE
FROM collection1
WHERE (collection1._ts > 0)

How do I achieve that?

Originally Sourced from: https://stackoverflow.com/questions/46871925/cosmos-db-deleting-a-document