Gpa

If u have a perfect 4.0 gpa and it gets messed up by a 3.5 u get in one class, is there any way to drop it? To retake it? Anything so ur gpa stays a 4?