First of all, I would like to compliment you all for creating a beautiful headless CMS!
Now, followed by my question. I have created a Singleton and a Collection this works fantastic creating fields, nesting, naming everything works just fine.
But removing one field from the collection or Singleton will not remove the field directly from the API.
How can I deal with this and make them disappear after removal? This is pretty annoying right now and doesn’t know what to do.
This is a bug and a feature as well, so it never got fixed. If contents would be removed automatically, Cockpit must know, if it really should delete them or if the fields are just hidden from the admin ui.
Have a look here for a solution with a cli command:
And some thoughts, why automatic removing is complicated: