# Clear

The update authority of an inscription can clear its data and the data of associated inscriptions using the **ClearData** instruction as long as inscription has not been engraved. The **ClearData** instruction requires one of the the **Authorites** to sign the transaction.

Clearing the data removes all existing data resizes the inscription account to 0.

Here is how you can use our SDKs to clear inscription data.

Clear Inscription Data

JavaScript

```

import { clearData, findInscriptionMetadataPda } from '@metaplex-foundation/mpl-inscription'

const inscriptionMetadataAccount = await findInscriptionMetadataPda(umi, {
  inscriptionAccount: inscriptionAccount.publicKey,
})

await clearData(umi, {
  inscriptionAccount: inscriptionAccount.publicKey,
  inscriptionMetadataAccount,
  associatedTag: null, //use the same tag here as you used on creation
})
```

The `associatedTag` is used to derive the associated inscription account correctly.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://8bit-1.gitbook.io/solibrary/clear.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
