How can I prevent after effects from creating annoying folders on local disks
when i start working on aftereffects, there are new folders have been created automatically, named "040d470cd2dc7c9c2e1ea3358d" and so on
they require an admin permission to delete them
Presumably a configuration problem with your temp folders and cache folders. Without knowing anything about those settings, nobody can tell you much, though.
so where the temp and cache folders of aftereffects are located ?
You can check on Preferences>Media and Disk Cache