def delete(self, name):
bot.debug("<STR_LIT>" % name)<EOL>for file_object in files:<EOL><INDENT>if isinstance(file_object, dict):<EOL><INDENT>if "<STR_LIT>" in file_object:<EOL><INDENT>if file_object['<STR_LIT>'] == "<STR_LIT>":<EOL><INDENT>object_name = "<STR_LIT:/>".join(file_object['<STR_LIT:id>'].split('<STR_LIT:/>')[:-<NUM_LIT:1>])<EOL>object_name = re.sub('<STR_LIT>' %self._bucket['<STR_LIT:name>'],'<STR_LIT>', object_name,<NUM_LIT:1>)<EOL>delete_object(service=self._bucket_service,<EOL>bucket_name=bucket['<STR_LIT:name>'],<EOL>object_name=object_name)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
delete an image from Google Storage.

       Parameters
       ==========
       name: the name of the file (or image) to delete