delet ubdate function