Deleting Files
Last updated
Was this helpful?
Last updated
Was this helpful?
This guide will show you how to delete files pinned to IPFS using Filebase. We offer three methods for deleting files: our JavaScript SDK, our S3 Compatible API, and our web application dashboard. Choose the method that best suits your needs.
First, you need to install the Filebase SDK. You can do this using npm:
Once you have the SDK installed, you can use it to delete files from IPFS. Here’s a simple example to get you started:
S3_KEY
and S3_SECRET
: Your Filebase API credentials.
objectManager.delete()
: Delete the specified file from the bucket.
For more details, refer to the .
Before you can start deleting files using the S3 Compatible API, you need to authenticate using your API key and secret.
You can delete files using standard S3 operations. Here’s an example using the AWS SDK for JavaScript:
endpoint
: Filebase S3 Compatible API endpoint.
Bucket
: The name of your S3 bucket.
Key
: The path of the file to be deleted.
Login: Start by logging into your Filebase account.
Navigate to the Dashboard: Once logged in, navigate to the dashboard.
Select Your Bucket: Choose the bucket from which you want to delete the files.
Delete Files: Click on the "Delete" button next to the file you wish to remove.
Ensure you have selected the correct files before deleting.
Deleted files cannot be recovered, so double-check before confirming.
For more details, refer to the .