delete object without downloading it first
This commit is contained in:
parent
92f2a430a8
commit
8e6cb6dc54
|
@ -135,8 +135,8 @@ class Swift implements IObjectStore {
|
||||||
*/
|
*/
|
||||||
public function deleteObject($urn) {
|
public function deleteObject($urn) {
|
||||||
$this->init();
|
$this->init();
|
||||||
$object = $this->container->getObject($urn);
|
// see https://github.com/rackspace/php-opencloud/issues/243#issuecomment-30032242
|
||||||
$object->delete();
|
$this->container->dataObject()->setName($urn)->delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function deleteContainer($recursive = false) {
|
public function deleteContainer($recursive = false) {
|
||||||
|
|
Loading…
Reference in New Issue