ipfs-http-client
Version:
A client library for the IPFS HTTP API
11 lines • 341 B
JavaScript
import { toUrlSearchParams } from '../../../lib/to-url-search-params.js';
export function createRm(client) {
async function rm(name, options = {}) {
await client.post('pin/remote/service/rm', {
signal: options.signal,
headers: options.headers,
searchParams: toUrlSearchParams({ arg: name })
});
}
return rm;
}