delete object without downloading it first

This commit is contained in:
Jörn Friedrich Dreyer 2014-06-25 14:53:38 +02:00
parent 92f2a430a8
commit 8e6cb6dc54
1 changed files with 2 additions and 2 deletions

View File

@ -135,8 +135,8 @@ class Swift implements IObjectStore {
*/
public function deleteObject($urn) {
$this->init();
$object = $this->container->getObject($urn);
$object->delete();
// see https://github.com/rackspace/php-opencloud/issues/243#issuecomment-30032242
$this->container->dataObject()->setName($urn)->delete();
}
public function deleteContainer($recursive = false) {