# Managing services

To manage a database service, hover over the ellipsis icon (︙) at the right corner of the service. This icon provides options to Stop, Edit, or Delete the service. These options are also available on the database service home page.

### Stop the service

1. Select **Stop** to stop the database service. A confirmation window appears, reminding you that stopping the service disconnects all active sessions.
2. Optionally, add comments to provide details about your action. Select the **Are you sure you want to continue?** check box.
3. After you select the check box, the **Stop** button becomes enabled.
4. Click **Stop** to stop the database service. The status changes to **Stopping**, then to **Stopped** once the service is completely stopped.

   After the service is stopped, the **Start** option appears on the ellipsis icon.

> **Notes**:
>
> * This option is unavailable when stop protection is enabled.
> * Both the database and the VM are stopped if there is only one service.
> * To optimize your database costs, you can stop the service during periods such as daily development, testing, and training.
> * Stop operation is not allowed if a DR/RR instance is added to the database service. Tessell's service management is designed to ensure data integrity and replication continuity between primary and standby instances. DR/RR is an asynchronous replica compared to a synchronous HA setup. Hence, the stop option is disabled for DR configurations.

### Edit the service

1. Select **Edit** to edit the database service. The **Edit service** window appears and allows you to:
   * Edit the name of the database service.
   * Edit the description of the database service.
   * Toggle **Enable delete protection** to prevent the database service from being deleted. This option is disabled by default.
   * Toggle **Enable stop protection** to prevent the database service from being stopped. This option is disabled by default.
   * Toggle **Enable auto minor version update** to enable or disable automatic minor version updates.
2. After making the required edits, click **Update** to apply the changes.

### Delete the service

1. Select **Delete** to delete the database service. The Delete confirmation window appears with the warning "This action cannot be undone. Please read carefully." and the option **Do you want to retain the Availability Machine?**
2. If you choose **Yes**, the Availability Machine is retained and only the database service is deleted.
   * A service Availability Machine snapshot is taken before the service is deleted.
   * Manual snapshots are retained. Automated snapshots and transaction logs are deleted as per the RPO policy.
   * Data access policies are retained until they are manually deleted.
3. If you choose **No**, both the Availability Machine and the database service are deleted. All existing snapshots, data access policies, and logs across all regions are also deleted.
4. Optionally, add comments to provide details about your action.
5. For a single-service VM, both the database and the underlying VM are deleted as part of this operation.

> **Note**: This option is unavailable when delete protection is enabled.


---

# 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://docs.tessell.com/tessell/tessell-for-postgresql/db-services/readme-postgresql/managing-services-postgresql.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.
