WordPress › Support » How to 404 Redirect Deleted Tag Pages?

I found the code in archive.php that I think we are looking for (see below), but any idea how to change it to make it throw a 404 redirect?

https://wordpress.org/support/topic/how-to-404-redirect-deleted-tag-pages

Advertisements