Artificial intelligence (AI) was given the task of removing individual molecules from a closed molecular layer. First, a connection is established between the tip of the microscope (top) and the molecule (middle). Then the AI tries to remove the molecule by moving the tip without breaking the contact. Initially, the movements are random. After each pass, the AI learns from the collected experiences and becomes better and better.