Removed stopEvent from deleteProfile and deleteAllProfiles (for gui)