> For the complete documentation index, see [llms.txt](https://guardian.hedera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guardian.hedera.com/docs/develop/guardian/workspace/policies/discontinuing-policy-workflow/user-guide.md).

# User Guide

1. [Step By Step Process](#id-1.-step-by-step-process)
2. [Demo Video](#id-2.-demo-video)

## 1. Step By Step Process

1. Click ‘Discontinue’ button for the policy in policies list

![image3.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-de62c5956945e3a0e5da2978313d394fa60a00e3%2F0.png?alt=media)

2. Policy can be marked ‘discontinued’ immediately (chose ‘Immediate’ option) or automatically at a later date (‘Deferred’ option)

![image1.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-930257b67a174d3179306aa26a01f4282796366a%2F1.png?alt=media)

3. In the UI policies, which were set to discontinue immediately are displayed with the red color in the status block and policies which are set to deferred discontinue are displayed with the gold warning color in the status block.

![image10.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-708511f2778f78991625164e4889f2da286154e8%2F2.png?alt=media)

4. Discontinue actions in the UI triggers the issuance of the \[deferred-]discontinue-policy messages in the corresponding policy topic

![image12.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-14852d76e608e8b0fb7249d50d392caf240e854c%2F3.png?alt=media)

5. Discontinued policy is displayed with a red bar in the UI. For these policies the creation of new documents for users/sensors is not disabled. Policies which are set to discontinue later (‘deferred’) are displayed with a yellow warning bar

![image4.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-0c45f3808150d123c7e407ae93a52c4fefb3c84c%2F4.png?alt=media)

![image11.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-57b5f4011f5fb03527d144d2308db16582b98fe1%2F5.png?alt=media)

6. When a policy has been discontinued users can migrate data to another (currently active) policy

![image6.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-5b43a820b30fee1435c96b72a849f00bc22aa86a%2F6.png?alt=media)

### Migration steps order:

1. Policies: Select the source and the destination policy.
2. VP Documents : Select VPs which are to be migrated from the source policy.
3. VC Documents : Select VCs which are to be migrated from the source policy.
4. Schemas : Map the source policy schemas with the destination policy schemas.
5. Roles : Map source policy roles with the destination policy roles.
6. Groups : Map the source policy groups with the destination policy groups.
7. Tokens: Map the token templates
8. Blocks : Block mapping (while state migrating is enabled)
9. Clicking OK you will start an asynchronous migration task

<figure><img src="https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-f09b0e8899001c53e4ec2ab2e233133c0ef6c6a7%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

![image9.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-e2d263ad3413e1d61ede71d4d75a9d83ce49a5a7%2F7.png?alt=media)

3. When the task completes, a success or warning (in case of issues) notification is displayed.

![image8.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-a7066f8b0f5e6be641913e5ff9f91e4c4e034b23%2F8.png?alt=media)

## 2. Demo Video

[Youtube](https://www.youtube.com/watch?v=vvHI4AG-8z8\&list=PLnld0e1pwLhqdR0F9dusqILDww6uZywwR\&index=13)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guardian.hedera.com/docs/develop/guardian/workspace/policies/discontinuing-policy-workflow/user-guide.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
