title: Remove WooCommerce checkout fields values
body: <p>I'm trying to apply <code>autocomplete="off"</code> on my WooCommerce checkout fields but it just doesn't work. </p>
  
  <p>Is there a way to do that for the checkout form? </p>
  
  <p>I checked the docs and there's nothing available there. I also tried setting the default value to empty but it doesn't work either. This is when the user is not logged in of course.</p>
  
  <p><a href="https://i.stack.imgur.com/uHuH2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/uHuH2.png" alt="enter image description here"></a></p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I tried <code>unset</code> as suggested by @smvax but it did not work as well.</p>
  
  <pre><code>add_filter('woocommerce_checkout_fields', 'default_values_checkout_fields');
  function default_values_checkout_fields($fields) {
    if (!is_user_logged_in()) {
        unset($fields['billing_city']);
        unset($fields['billing_first_name']);
        unset($fields['billing_last_name']);
        unset($fields['billing_company']);
        unset($fields['billing_address_1']);
        unset($fields['billing_address_2']);
        unset($fields['billing_city']);
        unset($fields['billing_postcode']);
        unset($fields['billing_country']);
        unset($fields['billing_state']);
        unset($fields['billing_email']);
        unset($fields['billing_phone']);
        unset($fields['shipping_city']);
        unset($fields['shipping_first_name']);
        unset($fields['shipping_last_name']);
        unset($fields['shipping_company']);
        unset($fields['shipping_address_1']);
        unset($fields['shipping_address_2']);
        unset($fields['shipping_postcode']);
        unset($fields['shipping_country']);
        unset($fields['shipping_state']);
        return $fields;
    }
  }
  </code></pre>
  
  <p>I also tried the answer <strong><a href="https://stackoverflow.com/questions/40582340/clear-checkout-fields-in-woocommerce">here</a></strong> but it's not working as well.</p>
  
  <p>Thanks</p>