I am trying to do various things with folders after creation, such as move ad delete.
However, I am only getting 404 Not Found errors, despite the folders existing!
I am using the following code to try and delete a folder
try {
$this->service->objects->delete($bucket, $file);
} catch (Google_Service_Exception $e) {
syslog(LOG_ERR, $e);
}
And I am passing the correct bucket name (e.g. bucket-name.appspot.com) along with a folder path (e.g. main_folder/sub_folder/another_folder_here)