'Unload specific poc file(s)'

def do_pocdel(self, line):

    if (line and line.isdigit() and (int(line) in kb.unloadedList)):
        poc_path = kb.unloadedList.get(int(line))
        poc_name = os.path.basename(poc_path)
        if (poc_name in kb.pocs):
            kb.pocs.pop(poc_name)
            poc_modname = poc_name.split('.')
            poc_modname = '.'.join(poc_modname[:(-1)])
            if (poc_modname in kb.registeredPocs):
                kb.registeredPocs.pop(poc_modname)
            print '[*]    unload    poc-{}:    {}'.format(line, poc_name)
