CloudFilesProvider.DeleteObject Method |
Deletes an object from a container.
Namespace: net.openstack.Providers.RackspaceAssembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntaxpublic void DeleteObject(
string container,
string objectName,
Dictionary<string, string> headers = null,
bool deleteSegments = true,
string region = null,
bool useInternalUrl = false,
CloudIdentity identity = null
)
Public Sub DeleteObject (
container As String,
objectName As String,
Optional headers As Dictionary(Of String, String) = Nothing,
Optional deleteSegments As Boolean = true,
Optional region As String = Nothing,
Optional useInternalUrl As Boolean = false,
Optional identity As CloudIdentity = Nothing
)
public:
virtual void DeleteObject(
String^ container,
String^ objectName,
Dictionary<String^, String^>^ headers = nullptr,
bool deleteSegments = true,
String^ region = nullptr,
bool useInternalUrl = false,
CloudIdentity^ identity = nullptr
) sealed
abstract DeleteObject :
container : string *
objectName : string *
?headers : Dictionary<string, string> *
?deleteSegments : bool *
?region : string *
?useInternalUrl : bool *
?identity : CloudIdentity
(* Defaults:
let _headers = defaultArg headers null
let _deleteSegments = defaultArg deleteSegments true
let _region = defaultArg region null
let _useInternalUrl = defaultArg useInternalUrl false
let _identity = defaultArg identity null
*)
-> unit
override DeleteObject :
container : string *
objectName : string *
?headers : Dictionary<string, string> *
?deleteSegments : bool *
?region : string *
?useInternalUrl : bool *
?identity : CloudIdentity
(* Defaults:
let _headers = defaultArg headers null
let _deleteSegments = defaultArg deleteSegments true
let _region = defaultArg region null
let _useInternalUrl = defaultArg useInternalUrl false
let _identity = defaultArg identity null
*)
-> unit
Parameters
- container
- Type: System.String
The container name. - objectName
- Type: System.String
The object name. Example image_name.jpeg - headers (Optional)
- Type: System.Collections.Generic.Dictionary<String, String>
A collection of custom HTTP headers to include with the request. - deleteSegments (Optional)
- Type: System.Boolean
Indicates whether the file's segments should be deleted if any exist. - region (Optional)
- Type: System.String
The region in which to execute this action. If not specified, the user's default region will be used. - useInternalUrl (Optional)
- Type: System.Boolean
true to use the endpoint's InternalURL; otherwise false to use the endpoint's PublicURL. - identity (Optional)
- Type: net.openstack.Core.Domain.CloudIdentity
The cloud identity to use for this request. If not specified, the default identity for the current provider instance will be used.
Implements
IObjectStorageProvider.DeleteObject(String, String, Dictionary<String, String>, Boolean, String, Boolean, CloudIdentity)
Exceptions
Remarks
To support large files, the object storage services allows for a single logical file
to be split into multiple segments. The deleteSegments parameter
provides a way to delete a segmented file as though it were stored as a single object
by deleting both the logical file's metadata and the individual segments. The
deleteSegments parameter is ignored if the specified object is not
a segmented file.
Version Information.NET Framework
Supported in: 4.5
openstack.net
Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also