diff options
Diffstat (limited to 'atuin-client')
-rw-r--r-- | atuin-client/src/api_client.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/atuin-client/src/api_client.rs b/atuin-client/src/api_client.rs index d53c9a364..709627b6b 100644 --- a/atuin-client/src/api_client.rs +++ b/atuin-client/src/api_client.rs @@ -287,6 +287,17 @@ impl<'a> Client<'a> { Ok(()) } + pub async fn delete_store(&self) -> Result<()> { + let url = format!("{}/api/v0/store", self.sync_addr); + let url = Url::parse(url.as_str())?; + + let resp = self.client.delete(url).send().await?; + + handle_resp_error(resp).await?; + + Ok(()) + } + pub async fn post_records(&self, records: &[Record<EncryptedData>]) -> Result<()> { let url = format!("{}/api/v0/record", self.sync_addr); let url = Url::parse(url.as_str())?; |