I'm able to delete the document in cosmosdb using the below code.
Optional<Place> place = repository.findById(id);
repository.delete(place.get());
But, if I use the method repository.deleteById(id) from the CrudRepository it's returning me the below error.
com.azure.data.cosmos.NotFoundException: ["Resource Not Found"]