How do I exclude a hard drive from Time Machine backup history?

I've just found that a hard drive I don't need to backup has been include in Time Machine backups for a while.

Is there a way I can exclude that drive from the backup history, or all I can do is avoid it being backup in the next runs?


Once you’ve excluded the drive from future backups using System Preferences → Time Machine, open Time Machine on your computer, secondary-click on the disk to delete and choose ‘Delete All Backups of disk’.

http://osxdaily.com/2015/07/27/delete-old-backups-time-machine-mac/