Why Does Deleteui Not Work In Maya Python With This Script Stack

Why Does Deleteui Not Work In Maya Python With This Script Stack