unpin_public_file
Unpin file
1
import { getClient } from "./client";
2
​
3
(async () => {
4
const service = await (await getClient()).service('storage', "5jqee4kl1ns1");
5
const key = "5J5hLqZrc3DvURBtwapKjpYH676QMmoZvFUy2NGkyeYv4ZuxxhK";
6
const uri = "ipfs://zb2rhga33kcyDrMLZDacqR7wLwcBRVgo6sSvLbzE7XSw1fswH";
7
const permission = "active";
8
const result = await service.unpin(
9
uri,
10
key,
11
permission,
12
);
13
console.log(`result: ${JSON.stringify(result)}`);
14
})().catch((e) => { console.log(e); });
Copied!
Last modified 9mo ago
Copy link