How to delete a file in blod storage using mobile service RRS feed

  • Question

  • This link shows how to add a file using windows phone 8 mobile service. I would like to know how I can delete the file once it is stored in the blob storage. I have typed following codes by using existing resource name and image url after the file has been successfully uploaded and although I do not receive any errors, the file does not get deleted in the storage either:

    CloudBlockBlob blobFromSASCredential =container.GetBlockBlobReference(todoItem.ResourceName);
                    await blobFromSASCredential.DeleteAsync();

    Can anyone help? I am using Thank you.

    Friday, February 14, 2014 4:35 AM