---
title: Shutting down the deployment
description: Shut down the deployment and remove all virtual machines (VMs) and data.
component: pingintelligence
version: 5.2
page_id: pingintelligence:installing_pingintelligence_for_apis:pingintelligence_shut_down
canonical_url: https://docs.pingidentity.com/pingintelligence/5.2/installing_pingintelligence_for_apis/pingintelligence_shut_down.html
revdate: April 3, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Shutting down the deployment

Shut down the deployment and remove all virtual machines (VMs) and data.

## About this task

When you shut down the deployment, all VMs along with the data are deleted.

## Steps

1. To shut down the deployment and remove all VMs and data, run the `stop.sh` command:

   ```
   [pi-api-deployment]# ./bin/stop.sh
   Please see /opt/pingidentity/pi-api-deployment/logs/ansible.log for more details.
   ```

2. To verify whether the deployment was successfully stopped, check the `ansible.log` file:

   ```
   [pi-api-deployment]# tail -f logs/ansible.log
   ====================================================================================
   Current Time: Sun Jun 07 07:23:11 EST 2020
   Starting stop scripts
   ====================================================================================
   Sun Jun 07 07:23:11 EST 2020: Play stop setup
   PLAY RECAP ***
   192.168.11.124 : ok=2 changed=1 unreachable=0 failed=0
   192.168.11.145 : ok=2 changed=1 unreachable=0 failed=0
   192.168.11.146 : ok=2 changed=1 unreachable=0 failed=0
   192.168.11.148 : ok=2 changed=1 unreachable=0 failed=0
   192.168.11.149 : ok=4 changed=3 unreachable=0 failed=0
   Sun Jun 07 07:32:53 EST 2020: Stop successful
   ====================================================================================
   ```

3. Manually remove the PingIntelligence component service scripts from `/etc/systemd/system/pi-*`.
