On Windows machines, you must stop the instance of MySQL that is installed with the ATG platform before you can delete the ATG directories:

To stop MySQL: