/** * @depends testRadosRead */ public function testRadosRemove($info) { $r = rados_remove($info['ioctx'], $info['oid']); $this->assertTrue($r); return $info; }
public function remove($oid) { return \rados_remove($this->_ioctx, $oid); }
/** * @param string $path * @return bool * @throws RadosException */ public function unlink($path) { $openedPath = null; if (!$this->stream_open($path, 'r', null, $openedPath)) { return false; } $ret = \rados_remove($this->ioctx, $this->stat['oid']); if (!$ret) { throw new IOException("Could not delete '" . $this->stat['oid'] . "'"); } $this->stream_close(); return true; }