Buckets
Buckets are containers for your objects. Every object in Fil One lives inside a bucket.
Bucket naming rules
Bucket names must be:
- Between 3 and 63 characters
- Lowercase letters, numbers, and hyphens only (no dots)
- Must start and end with a letter or number
- Unique within the region
- Not starting with
filone-rag-, which is reserved
These rules are close to AWS S3's but not identical: in particular Fil One does not allow dots (.) in bucket names, which AWS S3 permits. If you are migrating a bucket whose name contains a dot, you will need to rename it.
Creating a bucket
Whether you can create a bucket through the S3 API depends on the region. CreateBucket and DeleteBucket are supported in us-east-1, but not in eu-west-1 — in that region buckets must be created in the Fil One console. All other S3 operations (uploading, downloading, listing objects, etc.) work normally via the API in every region.
To use CreateBucket or DeleteBucket with an access key, grant the key that permission when you create it. See API Keys.
- From the dashboard, click New bucket to open the create form.
- Enter a bucket name.
- Choose a region:
eu-west-1Europe (France, the default) orus-east-1US East (Michigan). - Optionally expand Advanced settings to turn on Versioning, then Object Lock, then Retention. Each needs the one before it: until it's on, the next switch shows a Needs Versioning or Needs Object Lock badge. Retention takes a mode (Governance, the default, or Compliance) and a duration from 1 day up to 100 years; it starts at 15 days. Leave Versioning off and the bucket keeps only the current copy of each object.
- Click Create bucket. The console opens the new bucket's page, which offers Create API key. A key belongs to a single region and must match the bucket's region.
Every bucket is created with encryption enabled automatically.
Region, versioning, Object Lock, and retention cannot be changed after the bucket exists — there is no update-bucket operation, and a bucket cannot be moved between regions. To change any of them you have to create a new bucket and copy the data across. Enable versioning and Object Lock now if you are likely to want them.
Listing buckets
- AWS CLI
- Python (boto3)
aws s3 ls --endpoint-url https://s3.eu-west-1.filonecontent.com
response = s3.list_buckets()
for bucket in response["Buckets"]:
print(bucket["Name"], bucket["CreationDate"])
Deleting a bucket
A bucket must be empty before it can be deleted, with no objects or object versions left in it.
- App
- AWS CLI
Open Buckets, choose Delete bucket from the bucket's actions menu, and confirm. If the bucket still holds objects, the dashboard tells you it is not empty. Open the bucket and use Empty bucket to remove everything first. See Buckets in the console.
Dashboard deletion works in every region, including eu-west-1. Only the Owner and Admin roles can delete buckets.
aws s3 rb s3://my-bucket --endpoint-url https://s3.us-east-1.filonecontent.com --region us-east-1
DeleteBucket over the S3 API works in us-east-1, using a key that has the DeleteBucket permission. It is not available in eu-west-1, so use the dashboard there.
When you delete a bucket and its objects, the data is immediately removed from your Fil One account and is no longer accessible via the API or dashboard. Because Filecoin stores data in sealed sectors, the underlying storage may persist for a bounded period after deletion before it naturally expires. That residual data stays encrypted, and key custody sits with the regional storage operator rather than with you or Fil One — see Encryption. The exact duration is set by the storage layer rather than measured by Fil One, and it does not affect your ability to manage your data in Fil One.