'Destroy objects cleanly.'

def func(self):

    caller = self.caller
    if (not self.args):
        self.msg('Usage:    @cdestroy    <channelname>')
        return
    channel = find_channel(caller, self.args)
    if (not channel):
        self.msg(('Could    not    find    channel    %s.' % self.args))
        return
    if (not channel.access(caller, 'control')):
        self.msg('You    are    not    allowed    to    do    that.')
        return
    channel_key = channel.key
    message = ('%s    is    being    destroyed.    Make    sure    to    change    your    aliases.' % channel_key)
    msgobj = create.create_message(caller, message, channel)
    channel.msg(msgobj)
    channel.delete()
    CHANNELHANDLER.update()
    self.msg(("Channel    '%s'    was    destroyed." % channel_key))
