/** * Deletes the named role. * * @see https://www.vaultproject.io/docs/auth/token.html * @param string $role * @return mixed */ public function deleteRole(string $role) { return $this->client->delete('/v1/auth/token/roles/' . $role); }
/** * Delete the key with given path. * * This is the raw path in the storage backend and not the logical path that is exposed via the mount system * * @see https://www.vaultproject.io/docs/http/sys-raw.html * @param string $path * @return mixed */ public function deleteRaw($path) { return $this->client->delete('/v1/sys/raw/' . $path); }
public function delete($path) { return $this->client->delete('/v1/' . $path); }