Pinning
Delete File (Unpin)
Delete a file by CID
DELETE
Delete File (Unpin)
Unpin All Files
Unpin All Files
If you find yourself in a place where you need to unpin a lot of files or perhaps all your files, you can use a script like this to create an array of CIDs and unpin them one by one. The example below uses the pinList
queries to target all pinned files and return 1000 for each request. This could easily be done with a different query to target different files, please check out the listing files doc for more info.
Unpin All Files
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
200 - text/plain
OK
The response is of type string
.
Example:
"OK"
Delete File (Unpin)