BinaryDataExternalStoragesManager.Delete
Delete
Syntax
Delete(<ExternalBinaryDataStorage>)
Parameters
<ExternalBinaryDataStorage> (required)
Type: BinaryDataExternalStorageManager. Manager of the external binary data storage.
Returned value
No
Description
Deletes an external binary data storage. Exclusive access to the infobase is required.
Availability
Server.
Note
If you try to delete it again, an exception will be thrown.
You can restore a deleted external storage. To do this, call the Add method with the same parameters: <Name>, <ConnectionParameters>, and <AccessParameters>. In this case, all BLOB objects will be overwritten and will be available from the external storage.
Example
cp = New BinaryDataExternalStorageConnectionParameters();
cp.URL = "https://bucket.example.com";
cp.URLType = BinaryDataExternalStorageURLType.S3VirtualHost;
ap = New BinaryDataExternalStorageAccessParameters();
ap.AccessID = "EXAMPLE";
ap.SecretKey = "SecretKey";
ap.Region = "US";
Mngr = BinaryDataExternalStorages.Add("manager", cp, ap);
Mngr = BinaryDataExternalStorages["manager"];
BinaryDataExternalStorages.Delete(Mngr);
See also
BinaryDataExternalStoragesManager, method Add
No comments to display
No comments to display