# Updated fields didnt update the API

**URL:** <https://discourse.getcockpit.com/t/updated-fields-didnt-update-the-api/2838>\
**Category:** Support\
**Created:** [July 18, 2023, 8:54am UTC](https://discourse.getcockpit.com/t/updated-fields-didnt-update-the-api/2838 "2023-07-18T08:54:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arifkyf](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@arifkyf](https://discourse.getcockpit.com/u/arifkyf)\
**Post date:** [July 18, 2023, 8:54am UTC](https://discourse.getcockpit.com/t/updated-fields-didnt-update-the-api/2838/1 "2023-07-18T08:54:18Z")

</div>

![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/d/dd5d1b7f55eb8712d34a5f74836bc02984a647f8.png)

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

---

<div class="post-metadata">

**Author:** ![raffaelj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/raffaelj/32/331_2.png) [@raffaelj](https://discourse.getcockpit.com/u/raffaelj)\
**Post date:** [July 18, 2023, 4:31pm UTC](https://discourse.getcockpit.com/t/updated-fields-didnt-update-the-api/2838/2 "2023-07-18T16:31:05Z")

</div>

You can remove a renamed/deleted field with the cli:

```sh
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](https://github.com/Cockpit-HQ/Cockpit/blob/develop/modules/Content/Command/Field/Remove.php)

---

<div class="post-metadata">

**Author:** ![Barcsix](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/barcsix/32/1527_2.png) [@Barcsix](https://discourse.getcockpit.com/u/Barcsix)\
**Post date:** [May 23, 2025, 1:01pm UTC](https://discourse.getcockpit.com/t/updated-fields-didnt-update-the-api/2838/3 "2025-05-23T13:01:19Z")

</div>

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** _
