Skip to content

Commit

Permalink
Out of date sample code
Browse files Browse the repository at this point in the history
The code to delete a table is not correct. The code is creating an instance of CloudTable incorrectly. The right way to create the instance is using CloudTableClient's getTableReference method. I made the change to reflect that.
  • Loading branch information
gmantri authored Dec 10, 2016
1 parent e381064 commit bb72ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion articles/storage/storage-java-how-to-use-table-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ try
CloudTableClient tableClient = storageAccount.createCloudTableClient();

// Delete the table and all its data if it exists.
CloudTable cloudTable = new CloudTable("people",tableClient);
CloudTable cloudTable = tableClient.getTableReference("people");
cloudTable.deleteIfExists();
}
catch (Exception e)
Expand Down

0 comments on commit bb72ac0

Please sign in to comment.