how remove header and footer without yes or No prompt using macro or other option in openoffice 2.0 (if any)

how remove header and footer without yes or No prompt using macro or other option in openoffice 2.0