Remove resource without importing contract on transaction

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)?

You can load as @AnyResource

1 Like