I am new to the Google Cloud API and am struggling with a couple of questions:
- I have successfully uploaded an image to my Google Cloud "bucket" using the sample project found at https://zatackcoder.com/upload-file-to-google-cloud-storage-using-php/ verbatim. No changes, except to put my own credentials in the source code. Upon success, Google returns the object details below:
kind "storage#object"
id "my_test_bucket/uploads/Europe-Map.png/5555226335851276"
selfLink "https://www.googleapis.com/storage/v1/b/my_test_bucket/o/uploads%2FEurope-Map.png"
mediaLink "https://www.googleapis.com/download/storage/v1/b/my_test_bucket/o/uploads%2FEurope-Map.png?generation=5555226335851276&alt=media"
name "uploads/Europe-Map.png"
bucket "my_test_bucket"
generation "5555226335851276"
metageneration "1"
contentType "image/png"
storageClass "STANDARD"
size "782467"
md5Hash "TPmaAjp5ub1jxIQChhOAsQ=="
crc32c "PFU5yw=="
etag "CAyMp/aioe8CEAE="
retentionExpirationTime "2120-03-09T11:58:35.882Z"
timeCreated "2021-03-08T17:58:35.882Z"
updated "2021-03-08T17:58:35.882Z"
timeStorageClassUpdated "2021-03-08T17:58:35.882Z"
I can see the new file from my Google Cloud console, but I cannot delete it from the console. When I try, I get the very helpful message: "Unable to delete file".
I imagine it has to do with ACU or other security but as owner of the bucket, from the cloud console itself, shouldn't I always be able to delete any and all files?