# Cadence Contract update or Remove issue

**URL:** <https://forum.flow.com/t/cadence-contract-update-or-remove-issue/2734>\
**Category:** 🏄🏻‍♀️ Cadence\
**Created:** [January 17, 2022, 1:50pm UTC](https://forum.flow.com/t/cadence-contract-update-or-remove-issue/2734 "2022-01-17T13:50:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saadtroon](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@saadtroon](https://forum.flow.com/u/saadtroon)\
**Post date:** [January 17, 2022, 1:50pm UTC](https://forum.flow.com/t/cadence-contract-update-or-remove-issue/2734/1 "2022-01-17T13:50:38Z")

</div>

I am trying to update or remove contract but unable to do so. Any suggestion would be appreciable. You can see remove contract transaction below:  
`https://testnet.flowscan.org/transaction/a56c4838188112c59890664013945e3c0a83813fde49c3a01ce69fea0dcfcb8a`  
updating the contract shows this issue:  
`https://testnet.flowscan.org/transaction/30d6b8045ebf8f839fcd01e1af98866395398dd34653c311bfadfebb48d8bbc1/script`

---

<div class="post-metadata">

**Author:** ![bruno](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@bruno](https://forum.flow.com/u/bruno)\
**Post date:** [January 20, 2022, 2:34pm UTC](https://forum.flow.com/t/cadence-contract-update-or-remove-issue/2734/2 "2022-01-20T14:34:03Z")

</div>

Hi @saadtroon, I understand you are trying to update a contract on tesnet and getting a capability type mismatch for the Admin Resource.

I suggest deleting any resources used by the AdminResource and follow the steps outlined here:

> **[Contract Upgrades with Incompatible Changes](https://docs.onflow.org/cadence/contract-upgrades/#solution)**
>
> Start Building in the Open
