<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_all_files_of_img_id(img_id):
 """ Removes all img_id's files. """

    files = get_files_by_img_id(img_id, check_hash=False)
    if files:
        os.remove(media_path(files['main']))
        for fn in files['variants'].values():
            os.remove(media_path(fn))