Deleting Files
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.
Using the JavaScript SDK
Installation
First, you need to install the Filebase SDK. You can do this using npm:
Usage
Once you have the SDK installed, you can use it to delete files from IPFS. Here’s a simple example to get you started:
API Reference
S3_KEY
andS3_SECRET
: Your Filebase API credentials.objectManager.delete()
: Delete the specified file from the bucket.
For more details, refer to the Filebase SDK documentation.
Using the S3 Compatible API
Authentication
Before you can start deleting files using the S3 Compatible API, you need to authenticate using your API key and secret.
Deleting a File
You can delete files using standard S3 operations. Here’s an example using the AWS SDK for JavaScript:
API Reference
endpoint
: Filebase S3 Compatible API endpoint.Bucket
: The name of your S3 bucket.Key
: The path of the file to be deleted.
For more details, refer to the Filebase S3 API documentation.
Using the Web Application Dashboard
Step-by-Step Guide
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.
Tips
Ensure you have selected the correct files before deleting.
Deleted files cannot be recovered, so double-check before confirming.
Last updated