removeItem
import { nativeStorage } from "zmp-sdk";
Xoá dữ liệu trong cache theo cơ chế đồng bộ.
Ví dụ
Xoá từ khoá tìm kiếm cũ khỏi bộ nhớ:
nativeStorage.removeItem("recentSearch");
Xem hướng dẫn xử lý lỗi và bảng mô tả chi tiết mã lỗi tại đây.
Tham số
Truyền tham số vào API dưới dạng object chứa các thuộc tính:
| Property | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Tên khóa của dữ liệu cần xoá |