Detach machines deployed by MAAS

Hi Community,

I’ve read this: Detach a deployed machine from MaaS and make it independent.

Basically, we want to remove any residual or MAAS settings from deployed nodes/machines.
I am aware of the netplan and a few files within /etc/cloud/cloud.cfg.d
Is there anything else?

Does anyone around here have a script or an Ansible playbook that will help us remove this?

I appreciate any insights and help.
Thank you