I am trying to delete an item from CosmosDB collection. I am calling using
ItemResponse<Device> response = await _deviceCapabilityContainerName.DeleteItemAsync<Device>(device.deviceId, new PartitionKey(device.deviceId));
I have seen posts doing exactly the same only difference being, in my case both the values PartitionKey and id are same. I am constantly getting 404 Resource Not found error. How can I delete records in this case. I don't want to drop the collection and re-create.
