Removing a Pin
Removing a pin from the Sagittarius A* IPFS Cluster.
Overview
The Pin Remove Request, a DELETE
request to the /ipfs/pin/rm
endpoint, is an IPFS Pin Orchestration request used to remove a pin for the provided CID from the Sagittarius A* IPFS Cluster. Because multiple requestors may have the same CID pinned, the request ID system described in Adding a Pin is utilized to ensure no cluster-level action is taken to remove a pin if other instances of the pinned CID still exist to preserve the pins of other requestors, only removing the pin at the cluster-level if no other instances exist.
Sending the Request
Sending a request to the /ipfs/pin/rm
endpoint requires a valid API Key to be provided in the x-api-key
header, and that an IPFS CID be provided.
When a Pin Remove Request completes successfully, the returned output will contain a success message for individual pin removal for confirmation, or a success message for confirmation along with information about the pin when cluster-level action has been taken. When a Pin Remove Request completes successfully, the returned output will contain a success message for confirmation, along with information about the removed pin.
In the case where other instances of the pin exist for the given cid
, cluster-level action will not be taken to remove the pin, and instead the given apiKey
and cid
pair record will be removed for the requestor.
Last updated