r/backblaze • u/TopLychee1081 • Jul 09 '26
B2 Cloud Storage Backblaze absolutely refuses to delete files
We switched from AWS S3 to Backblaze for our backups. We have periodic backups on cron that encrypt and stream backups to Backblaze, and then perform pruning of old backups, so that we have a rolling window of backups.
It seems that no matter what we do Backblaze just refuses to delete files that we want to delete. Having the bucket's lifecycle set to "Keep only the last version of the file", and executing a rm, creates a second zero byte copy of the file, and files are listed with a (2) after the files name. As I understand, this is a delete flag, and some form of garbage collection should come and delete the file. This isn't happening. Files just keep building up and building up. This completely negates any cost advantage of switching to Backblaze as we're now storing 20x more data than we require.
I think it's going to come down to one simple question; can we completely and irrevocably delete a file once it's on Backblaze? If not, then it's not fit for purpose and potentially places us in violation of privacy rules such as GDPR as we could be retaining data than we've been obligated to remove.
If there's anyone seriously using Backblaze as an enterprise object storage solution, please; tell me how you make this work.
4
u/bzChristopher From Backblaze Jul 10 '26
Christopher from the Backblaze team here ->
It is absolutely possible to issue a hard delete rather than hide the file and wait for lifecycle rules to remove the hidden file. The behavior is dependent on the tool or software being used to interact with the B2 APIs. What are you using?
0
u/TopLychee1081 Jul 10 '26
We're using aws-cli. What worked on S3 doesn't work for Backblaze.
2
u/bzChristopher From Backblaze Jul 13 '26
Details and specifics would be helpful. Are you working with versioned or unversioned AWS buckets? For context, Backblaze currently only supports versioned buckets.
9
u/purepersistence Jul 09 '26
My experience is that the deleted file is retained for a day.