throws MalformedURLException, IOException {
FilesClient conn = attachment.cloudFilesConnection();
String bucket = attachment.container();
String key = attachment.key();
try {
conn.deleteObject(bucket, key);
}
catch (FilesNotFoundException e) {
throw new IOException("Failed to delete '" + bucket + "/" + key
+ "' to CloudFiles: Error " + e.getHttpStatusCode()
+ ": " + e.getHttpStatusMessage());