<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>I am curious: is there a hook that a theme can use for when it is deleted, so that I can clean up all my DB crud should some aesthetic ignoramus :-) decide to remove my theme?<br></div></blockquote><br></div><div>Unfortunately, there is no delete_theme hook (see:&nbsp;<a href="http://core.trac.wordpress.org/ticket/16401">http://core.trac.wordpress.org/ticket/16401</a>), but you could use&nbsp;<span style="color: rgb(0, 0, 0); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; ">'switch_theme'.</span></div><br></body></html>