remove

Function remove 

Source
pub async fn remove(key: &str) -> Result<(), JsValue>
Expand description

Removes a value from Telegram’s secure storage.

§Errors

Returns Err(JsValue) if the JavaScript call fails or secureStorage is missing.

§Examples

use telegram_webapp_sdk::api::secure_storage::{remove, set};
set("token", "123").await?;
remove("token").await?;