# Remove resource without importing contract on transaction

**URL:** <https://forum.flow.com/t/remove-resource-without-importing-contract-on-transaction/4824>\
**Category:** 🏄🏻‍♀️ Cadence\
**Created:** [May 29, 2023, 4:21pm UTC](https://forum.flow.com/t/remove-resource-without-importing-contract-on-transaction/4824 "2023-05-29T16:21:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marianomoxy](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@marianomoxy](https://forum.flow.com/u/marianomoxy)\
**Post date:** [May 29, 2023, 4:21pm UTC](https://forum.flow.com/t/remove-resource-without-importing-contract-on-transaction/4824/1 "2023-05-29T16:21:19Z")

</div>

We are working on a cadence transaction that removes some resources from the storage. The resources to remove are old versions that will be replaced with new ones. Currently we are removing the resource by loading it and then destroying. But to do so, is needed to import the contract that created the resource. Is there a way to remove the resource without loading it (to avoid importing the contract)?

---

<div class="post-metadata">

**Author:** ![bluesign](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/bluesign/32/1359_2.png) [@bluesign](https://forum.flow.com/u/bluesign)\
**Post date:** [May 29, 2023, 9:10pm UTC](https://forum.flow.com/t/remove-resource-without-importing-contract-on-transaction/4824/2 "2023-05-29T21:10:20Z")

</div>

You can load as @AnyResource
