<?php

namespace SixStorageOnline\Base;

class Six_Storage_Uninstall
{
    public static function Six_Storage_Uninstall_Function()
    {

        // delete_option('six_storage_online_api_url');
        
        // $six_storage_pages = [
        //     get_page_by_id(get_option('six_storage_signup_page_id')),
        //     get_page_by_id(get_option('six_storage_sign_in_page_id')),
        //     get_page_by_id(get_option('six_storage_rent_now_page_id')),
        //     get_page_by_id(get_option('six_storage_dashboard_page_id')),
        //     get_page_by_id(get_option('six_storage_thankyou_page_id')),
        // ];

        // foreach ($six_storage_pages as $page) {
        //     if(isset($page) && isset($page->ID))
        //     {
        //         wp_delete_post($page->ID, true);
        //     }
        // }
        
        // delete_option('six_storage_signup_page_id');
        // delete_option('six_storage_sign_in_page_id');
        // delete_option('six_storage_rent_now_page_id');
        // delete_option('six_storage_dashboard_page_id');
        // delete_option('six_storage_thankyou_page_id');

        // flush rewrite rules
        flush_rewrite_rules();
    }
}