def delete_file()

in sample-demo-app/aws_python_sample_application/image_processor.py [0:0]


def delete_file(file_path):
    try:
        print("Removing file from " + file_path)
        os.remove(file_path)
        print("Successfully removed file from " + file_path)
    except Exception:
        print("Failed to remove file from" + file_path)