Unable to remove/unset raw.idmap config on instance that is being set in profile

I’ve created a profile that includes the key raw.idmap: both 1000 1000 and applied it to a few instances. In one of the instances I’d like to unset or disable it but I can’t seem to find a way to do it.

I’ve attempted unsetting the value using:

lxc config unset c1 raw.idmap
Error: Can't unset key 'raw.idmap', it's not currently set

But I assume that the error is due to the fact its in the profile not the instance config. So I hoped I might be able to set the key to empty in the instance to override the value:

lxc config set c1 raw.idmap ""

No error but it also didn’t set the key/value in the config for the instance.

I’m guessing this will be trivial but I can’t seem to figure out how to do it. Any advice would be greatly appreciated.

Side note: This forum has been an amazing resource to understanding LXC/LXD. Thanks for all the great work.

Oh, yeah, that’s unfortunate…
I guess one hack you could try is to set it to a blank line with end of line return?

@stgraber Thanks for confirming. Thought I was missing something obvious.

Just tried adding a blank line to the instance config and it does unset the value:

echo -ne "\n" | lxc config set c1 raw.idmap -
lxc config show c1
...
raw.idmap: |2+

...

Looks a little strange but does stop the profile value from being passed :metal:
Thank you.