SalimAzureBlobAPI/SalimAzureAPI/AzureBlobManager.cs
/// <summary>
/// Deletes the specified blob from the specified container if it exists.
/// </summary>
/// <param name="containerName">The name of the Container</param>
/// <param name="blobName">The blob "file" to delete.</param>
/// <returns></returns>
Deletes the specified blob from the specified container if it exists.
Deletes the specified blob from the specified container if it exists .
public bool DeleteBlob(string containerName, string blobName)
        {
            return ExecuteWithExceptionHandlingAndReturnValue(
                    () =>
                    {
                        CloudBlobContainer container = _blobClient.GetContainerReference(containerName);
                        _blockBlob = container.GetBlockBlobReference(blobName);
                        _blockBlob.Delete();
                    });
        }
public bool DeleteBlob ( string containerName , string blobName ) { return ExecuteWithExceptionHandlingAndReturnValue ( ( ) => { CloudBlobContainer container = _blobClient . GetContainerReference ( containerName ) ; _blockBlob = container . GetBlockBlobReference ( blobName ) ; _blockBlob . Delete ( ) ; } ) ; }
Deletes the specified blob from the specified container if it exists.
Deletes the specified blob from the specified container if it exists .
None
containerName
string
The name of the Container
The name of the Container
blobName
string
The blob "file" to delete.
The blob " file " to delete .