Hello Sandy,

Please unplug the external hard drive to make sure that it is not the device that is making the clicking sound.

Is the sound similar to this video here?

Or is it more like this sound here?

Do you notice the clicking to happen more often when the iMac is under load, say like when playing back a large video file stored on your computers Hard Disk Drive?