/** * Delete a file. * * @param string $path * * @return bool */ public function delete($path) { try { $response = $this->api->delete_resources([$path]); return $response['deleted'][$path] === 'deleted'; } catch (Api\Error $e) { return false; } }
/** * Delete a file. * * @param string $path * @return bool */ public function delete($path) { $response = $this->api->delete_resources([$path]); return $response['deleted'][$path] === 'deleted'; }