Skip to content

Commit 937155a

Browse files
author
ryancrawcour
committed
change delete to use ID Based Routing instead of SelfLink
1 parent 89670bc commit 937155a

File tree

1 file changed

+1
-1
lines changed
  • samples/code-samples/CollectionManagement

1 file changed

+1
-1
lines changed

samples/code-samples/CollectionManagement/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private static async Task RunCollectionDemo()
172172
// NB! Deleting a collection will delete everything linked to the collection.
173173
// This includes ALL documents, stored procedures, triggers, udfs
174174
//*******************************************************************************
175-
await client.DeleteDocumentCollectionAsync(c1.SelfLink);
175+
await client.DeleteDocumentCollectionAsync(UriFactory.CreateDocumentCollectionUri(databaseId, collectionId));
176176

177177
Console.WriteLine("\n6. Deleted Collection {0}\n", c1.Id);
178178

0 commit comments

Comments
 (0)