diff --git a/pageserver/client/src/mgmt_api.rs b/pageserver/client/src/mgmt_api.rs index 0415ed05bd..5a94f819f7 100644 --- a/pageserver/client/src/mgmt_api.rs +++ b/pageserver/client/src/mgmt_api.rs @@ -221,4 +221,13 @@ impl Client { .await .map_err(Error::ReceiveBody) } + + pub async fn tenant_reset(&self, tenant_id: TenantId) -> Result<()> { + let uri = format!("{}/v1/tenant/{}/reset", self.mgmt_api_endpoint, tenant_id); + self.request(Method::POST, &uri, ()) + .await? + .json() + .await + .map_err(Error::ReceiveBody) + } }