def remove_many():     x=my_tree.selection()     for record in x:         my_tree.delete(record)

Read more of this post