def remove_file(config_map, file_key):
<EOL>if file_key[<NUM_LIT:0>] == '<STR_LIT:/>':<EOL><INDENT>file_key = file_key[<NUM_LIT:1>::]<EOL><DEDENT>client = boto3.client(<EOL>'<STR_LIT>',<EOL>aws_access_key_id=config_map['<STR_LIT>'],<EOL>aws_secret_access_key=config_map['<STR_LIT>']<EOL>)<EOL>client.delete_object(<EOL>Bucket=config_map['<STR_LIT>'],<EOL>Key=file_key<EOL>)<EOL>
Convenience function for removing objects from AWS S3

    Added by cjshaw@mit.edu, Apr 28, 2015
    May 25, 2017: Switch to boto3