CloudBlobContainer.Delete Method ()

Storage Client Library NET API

[This topic is part of the Microsoft Azure Storage Client Library 1.7, which has been deprecated. See Storage Client Library for the latest version.]

Deletes the container.

Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)

Usage

Visual Basic
Dim instance As CloudBlobContainer

instance.Delete

Syntax

Visual Basic
Public Sub Delete
C#
public void Delete ()
C++
public:
void Delete ()
J#
JScript

Remarks

When a container is deleted, a container with the same name cannot be created for at least 35 seconds; the container may not be available for more than 35 seconds if the service is still processing the request. While the container is being deleted, attempts to create a container of the same name will fail with the service returning additional error information indicating that the container is being deleted. All other operations, including operations on any blobs under the container, will fail until the container has been deleted.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

See Also