Used to delete a blob and snapshots within a specified container
Inheritance: BlobCommand
Esempio n. 1
0
 /// <summary>
 /// Checks to see whether a stroage account has completed a name resolution with an automatic checking timout of 5 minutes
 /// </summary>
 /// <returns>A boolean indicating whether the account has been created and resolved</returns>
 public bool CheckStorageAccountHasResolved(int timeoutInSeconds = 300)
 {
     // uses a blob command but can be any blob command
     var command = new DeleteBlobCommand(ContainerName, "")
     {
         AccountName = AccountName
     };
     return command.CheckStorageAccountExists(timeoutInSeconds);
 }
Esempio n. 2
0
 /// <summary>
 /// Deletes a blob 
 /// </summary>
 /// <param name="blobName">The name of a valid blob</param>
 public void DeleteBlob(string blobName)
 {
     var deleteblob = new DeleteBlobCommand(ContainerName, blobName)
     {
         AccountName = AccountName,
         AccountKey = AccountKey
     };
     deleteblob.Execute();
 }