Skip to content

Commit a992fe6

Browse files
committed
Add block.rm command
1 parent fe6db8c commit a992fe6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/io/ipfs/api/IPFS.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,10 @@ public byte[] get(Multihash hash) throws IOException {
300300
return retrieve("block/get?stream-channels=true&arg=" + hash);
301301
}
302302

303+
public byte[] rm(Multihash hash) throws IOException {
304+
return retrieve("block/rm?stream-channels=true&arg=" + hash);
305+
}
306+
303307
public List<MerkleNode> put(List<byte[]> data) throws IOException {
304308
return put(data, Optional.empty());
305309
}

0 commit comments

Comments
 (0)