What was wrong with him attempting to wipe his laptop?
(Also if he wrote his fork bomb and AD lockout thing on company time using company hardware, then deleting his code for them might count as destroying company property?)
This is good practice anyway, if your laid off or fired unexpectedly, likely your going to be locked out of your machine without notice and without opportunity to clean up.