views:

74

answers:

2

Hey,

I was wondering how do i remove a file from Rackspace's Cloudfiles using their API?

Im using php.

Devan

+1  A: 

Use the delete_object method of CF_Container.

Matthew Flaschen
A: 

Here is my code in C#. Just guessing the api is similar for php.

    UserCredentials userCredientials = new UserCredentials("xxxxxx", "99999999999999");
    cloudConnection = new Connection(userCredientials);
    cloudConnection.DeleteStorageItem(ContainerName, fileName);
senloe