public function delete_index($areaid = false) {
        if (!empty($areaid)) {
            $this->engine->delete($areaid);
            $this->reset_config($areaid);
        } else {
            $this->engine->delete();
            $this->reset_config();
        }
    }
public function delete_index($areaid = false) {
        if (!empty($areaid)) {
            $this->engine->delete($areaid);
            $this->reset_config($areaid);
        } else {
            $this->engine->delete();
            $this->reset_config();
        }
    }
public function delete_index ( $ areaid = false ) { if ( ! empty ( $ areaid ) ) { $ this -> engine -> delete ( $ areaid ) ; $ this -> reset_config ( $ areaid ) ; } else { $ this -> engine -> delete ( ) ; $ this -> reset_config ( ) ; } }
Deletes an area's documents or all areas documents.

@param string $areaid The area id or false for all
@return void
Deletes an area s documents or all areas documents .