Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Can't create object lifecycle rule

Hi all,

I am trying to delete all .json files in one of my buckets. I was able to do this successfully a few days ago (with all the PDF files in the bucket), by using 'Add object lifecycle rule'.

I was then able to 'Select an action' (delete files with .pdf suffix) and 'Select object conditions' (None), and click the 'Create' button. After a day, all the PDF files were gone.

I tried to do the same now to delete JSON files, but when I click 'Create' at the end, a message appears saying 'Unable to update lifecycle rules at this time. Try again or contact your administrator.' 

I have no idea why it wouldn't work this time. I am the administrator of the account but I'm not sure what else to try.

Thanks in advance!

0 1 200
1 REPLY 1

Hello , 

Welcome to Google Cloud Community!

Refresh the page and try again before writing valid value,  and also make sure that lifecycle fields are whole numbers before you submit.  Refresh browser cache and try again.

Have you tried with Gsutil? You may try using the gsutil command “gsutil lifecycle set [LIFECYCLE_CONFIG_FILE] gs://[BUCKET_NAME]”,  which will show a more specific error message.