# Stop, start and delete Java service Learn how to stop, start, restart, and delete your Java service in Zerops. ## Using Zerops GUI Go to the project dashboard and select the appropriate action from the menu in the top right corner: - **Stop** - Stops the service (only disk resources are consumed while stopped) - **Start** - Starts a stopped service - **Restart** - Restarts a running service - **Delete service** - Permanently deletes the service and all associated data :::warning Deleting a service is permanent and cannot be undone. All data associated with the service will be lost. ::: ## Using zCLI zCLI is the Zerops command-line tool. To manage your Java service via the command-line: 1. [Install & setup zCLI](/references/cli) 2. Run the appropriate command: ```sh # Stop a service zcli service stop [service-id-or-name] # Start a service zcli service start [service-id-or-name] # Delete a service zcli service delete [service-id-or-name] ``` :::info All zCLI commands are interactive. When you press enter, you will be given a list of your projects and services to choose from. ::: ### Available flags All service management commands support these flags: ``` -h, --help Help for the command. -P, --project-id string If you have access to more than one project, you must specify the project ID for which the command is to be executed. -S, --service-id string If you have access to more than one service, you must specify the service ID for which the command is to be executed. ``` The `delete` command also supports: ``` --confirm Skip confirmation prompts for destructive operations. ```