# How to update a contract with a new field?

**URL:** <https://forum.flow.com/t/how-to-update-a-contract-with-a-new-field/1797>\
**Category:** 🏄🏻‍♀️ Cadence\
**Created:** [April 22, 2021, 1:11pm UTC](https://forum.flow.com/t/how-to-update-a-contract-with-a-new-field/1797 "2021-04-22T13:11:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![newbdez33](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/newbdez33/32/426_2.png) [@newbdez33](https://forum.flow.com/u/newbdez33)\
**Post date:** [April 22, 2021, 1:11pm UTC](https://forum.flow.com/t/how-to-update-a-contract-with-a-new-field/1797/1 "2021-04-22T13:11:18Z")

</div>

I’m trying to add a new field to my contract data struct, but i got a “error: found new field” message.  
Is is possibile?

Thank you!

---

<div class="post-metadata">

**Author:** ![newbdez33](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/newbdez33/32/426_2.png) [@newbdez33](https://forum.flow.com/u/newbdez33)\
**Post date:** [April 22, 2021, 2:06pm UTC](https://forum.flow.com/t/how-to-update-a-contract-with-a-new-field/1797/2 "2021-04-22T14:06:36Z")

</div>

I found “flow accounts remove” can remove any contract in an account.

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [April 22, 2021, 4:31pm UTC](https://forum.flow.com/t/how-to-update-a-contract-with-a-new-field/1797/3 "2021-04-22T16:31:26Z")

</div>

Unfortunately, when upgrading contracts, it is not possible to add new fields to the contract or any of its defined composite types. Upgrades do not initialize fields, so it would put the storage for those new fields in an insecure state.
