How to hide error or status messages on specific pages in drupal?

    There are two ways:

    FIRST METHOD
    To do this you can create a page.tpl for the page by copying page.tpl.php and renaming it like page-
    .tpl.php and remove $messages variable from the page tpl file.

    SECOND METHOD

    Alternate and simple way is to add code in theme_preprocess_page(&$vars) in template.php

    if(arg(0) == 'thanks') {
    unset($vars['messages']);
    }

    0