I’m aware this might be a bit of a silly situation. I signed up for the 30 day trial and figured I’d try the object lock feature. For some reason I picked 1 year as a retention with governance as mode. The reasoning being I could always bypass the object lock as per the description.
Well. I’m unable to unlock the bucket or delete the files. Are my files held “hostage” for a year even if the trial runs out? Would be very nice if someone would be able to just delete my project and/or bucket
Using the word “unlock” might have been a poor choice. I can open the bucket and view the files. Just can’t remove the object lock nor delete the files.
A user with the BypassGovernanceRetention permission may remove the retention period for an object locked with Governance Mode using the AWS CLI or other AWS SDK.
The Storj Console currently doesn’t support this feature.
I’m trying. But frankly I don’t understand how to use these commands. I’ve managed to setup the CLI after going the entirely wrong route of registering an AWS account, just to find out I was supposed to use the storj access keys to configure the CLI.
I’m able to authenticate and run the s3 ls command… but no clue how to run the following:
Edit: Was able to run this as one string in CMD. But I’ve still got no clue what .txt file I’m supposed to provide. Nor what any of the other parameters require.
Edit2: Getting closer. Running the following command:
Another option is to delete them directly, this does work on the latest aws cli version. aws --endpoint-url https://gateway.storjshare.io s3api delete-object --bucket MYBUCKET --key FILENAME --version-id VERSIONID --bypass-governance-retention
I’m afraid the delete command does not work. Just spawns a new version of the files.
I’ve downgraded to v2.22.35 which allows me to change the rentention policy. Is there a way to do this to an entire folder? There’s a couple of hundred photos… it’s a slow process to do it one-by-one
Edit: Just finished deleting all files. Learned a valuable lesson, I guess. Thanks for the help!