DeleteObject CF_Container.
The DeleteObject method for CF_Container requires only one string argument object_name . This argument must be the name of the file to be deleted.
See sample C # code below:
string username = "your-username";
string apiKey = "your-api-key";
CF_Client client = new CF_Client();
UserCredentials creds = new UserCredentials(username, apiKey);
Connection conn = new CF_Connection(creds, client);
conn.Authenticate();
var containerObj = new CF_Container(conn, client, container);
string file = "filename-to-delete";
containerObj.DeleteObject(file);
Note Do not use the DeleteObject from the * CF_Client * class
source
share