rm method
Remove object from pin-list.
/api/v0/pin/rm
Arguments:
path
String
: Path to object(s) to be unpinned.
Optional arguments:
recursive
bool
: Recursively pin the object linked to by the specified object(s). Default: true.
Response:
{
"Pins": ["<string>", "..."],
"StatusCode": "<statusCode>",
"StatusMessage": "<statusMessage>"
}
See more: https://docs.ipfs.io/reference/http/api/#api-v0-pin-rm
Implementation
Future<Map<String, dynamic>> rm(
{required String path, bool? recursive}) async {
Response? res = await _post(
Ipfs.dio,
url: "${Ipfs.url}/pin/rm",
queryParameters: {
"arg": path,
if (recursive != null) "recursive": recursive,
},
);
return _interceptDioResponse(res, expectsResponseBody: true);
}