Python del var, если существует

if 'var' in globals() :
    del var
Annoying Armadillo