Deleting Programatically
The SDK has a very simple delete method that will allow you to delete an array of files byid. Alternatively you can delete a single file with the API.
Delete files from Pinata permanently using the SDK delete method, the Files API, or the dashboard to remove single files or files in bulk.
id. Alternatively you can delete a single file with the API.