I have created a singleton model named “home”.
Home has several fields:
navbar, heroes section, etc.
After that, I fill in the navbar forms.
But because I changed my mind, I removed the navbar field from the singleton.
But when I try to use GET on Rest API. Field Navbar still exists
You can remove a renamed/deleted field with the cli:
cd /path/to/cockpit
php ./tower content:field:remove home navbar
See also: https://github.com/Cockpit-HQ/Cockpit/blob/develop/modules/Content/Command/Field/Remove.php
Thanks a lot !
For those wondering, you can go to the Cockpit Settings > Tower
then run the following command as raffaelj said :
content:field:remove yourCollectionName fieldToRemove