public static boolean deleteProperty(Scriptable obj, String name)
    {
        Scriptable base = getBase(obj, name);
        if (base == null)
            return true;
        base.delete(name);
        return !base.has(name, obj);
    }
public static boolean deleteProperty ( Scriptable obj , String name ) { Scriptable base = getBase ( obj , name ) ; if ( base == null ) return true ; base . delete ( name ) ; return ! base . has ( name , obj ) ; }
Removes the property from an object or its prototype chain.
<p>
Searches for a property with <code>name</code> in obj or
its prototype chain. If it is found, the object's delete
method is called.
@param obj a JavaScript object
@param name a property name
@return true if the property doesn't exist or was successfully removed
@since 1.5R2