If you’re wanting to delete old user profiles from computers,
To delete old user profiles using group policy, first logon to a domain controller or a computer with RSAT installed. Next, navigate to our Group Policy Management inside of Administrative Tools. In the policy, navigate to
Computer Configuration > Policies > Administrative Templates > System > User Profiles. Next, right click on the policy titled Delete user profiles older than a specified number of days on system restart.
Once inside Enable the policy. Enter in the number of days the user profile will remain on the computer. One our number of days has been select
To apply the new setting to the computer, restart the machine or run
. To further verify that the policy is being applied, run