def delete(self, location):
bucket = self.info['<STR_LIT>']<EOL>prefix = self.info['<STR_LIT>']<EOL>self.logger.debug('<STR_LIT>')<EOL>s3conn = self.client <EOL>if location[<NUM_LIT:0>] == '<STR_LIT:/>':<EOL><INDENT>location = location[<NUM_LIT:1>:]<EOL><DEDENT>if location[-<NUM_LIT:1>] == '<STR_LIT:/>':<EOL><INDENT>location = location[:-<NUM_LIT:2>]<EOL><DEDENT>self.logger.debug('<STR_LIT>')<EOL>for s3key in s3conn.list_objects(Bucket=bucket, Prefix=(prefix+'<STR_LIT:/>'+location))['<STR_LIT>']:<EOL><INDENT>s3conn.delete_object(Bucket=bucket, Key=s3key['<STR_LIT>'])<EOL><DEDENT>self.logger.debug('<STR_LIT>')<EOL>
Delete content in bucket/prefix/location.
           Location can be a directory or a file (e.g., my_dir or my_dir/my_image.tif)
           If location is a directory, all files in the directory are deleted.
           If it is a file, then that file is deleted.

           Args:
               location (str): S3 location within prefix. Can be a directory or
                               a file (e.g., my_dir or my_dir/my_image.tif).