Those "tuneup" apps will do that. You need to provide more details OS, machine etc.
Dafydd.