Updated on 2025-05-14 GMT+08:00

Quick Uninstallation

  1. Before deleting a stack, ensure that Dify's external services have been stopped. If there are database connections, disconnect the sessions first before attempting to delete the stack. For details about how to terminate the database sessions, refer to steps 2 and 3.
  2. Log in to the RDS console. In the navigation pane on the left, choose Instances. On the displayed page, click the name of the database instance.

    Figure 1 Database instance

  3. In the navigation pane on the left, choose DBA Assistant > Real-Time Diagnosis. On the displayed page, all real-time sessions of the current database are displayed. Select all sessions with the database name dify and the username postgres. Click Kill Session. In the Kill Session dialog box that appears, click OK to terminate the sessions.

    Figure 2 Real-time sessions
    Figure 3 Terminating sessions

  4. Log in to the Stacks page of the RFS console, find the resource stack created for the solution, and click Delete in its Operation column.

    Figure 4 Deleting the stack

  5. In the Delete Stack dialog box that appears, set When Deleted to Delete resource, enter Delete in the box, and click OK.

    Figure 5 Confirming the deletion