public function delete_all() {
        $categories = $this->get_categories_with_fields();
        foreach ($categories as $category) {
            api::delete_category($category);
        }
        $this->clear_configuration_cache();
    }
public function delete_all() {
        $categories = $this->get_categories_with_fields();
        foreach ($categories as $category) {
            api::delete_category($category);
        }
        $this->clear_configuration_cache();
    }
public function delete_all ( ) { $ categories = $ this -> get_categories_with_fields ( ) ; foreach ( $ categories as $ category ) { api :: delete_category ( $ category ) ; } $ this -> clear_configuration_cache ( ) ; }
Deletes all data and all fields and categories defined in this handler
Deletes all data and all fields and categories defined in this handler