# How to purge old deployment without remove the VM

**URL:** <https://forum.opennebula.io/t/how-to-purge-old-deployment-without-remove-the-vm/4761>\
**Category:** Product Support\
**Created:** [August 11, 2017, 1:15pm UTC](https://forum.opennebula.io/t/how-to-purge-old-deployment-without-remove-the-vm/4761 "2017-08-11T13:15:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srtsmn](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@srtsmn](https://forum.opennebula.io/u/srtsmn)\
**Post date:** [August 11, 2017, 1:15pm UTC](https://forum.opennebula.io/t/how-to-purge-old-deployment-without-remove-the-vm/4761/1 "2017-08-11T13:15:36Z")

</div>

Hi,

my datastore is almost full due to a deployment done in the created VMs.  
For example, the VM id 5 has 2 disks

```
$ ls -l 5
total 629146048
-rw-rw-r-- 1 oneadmin oneadmin 1251 Aug 10 12:40 deployment.0
-rw-rw-r-- 1 oneadmin oneadmin 1062 Aug 10 15:48 deployment.1
-rw-rw-r-- 1 oneadmin oneadmin 1063 Aug 10 15:59 deployment.2
-rw-r--r-- 1 oneadmin oneadmin 322122547200 Aug 10 13:25 disk.0
-rw-r--r-- 1 oneadmin oneadmin 372736 Aug 10 15:59 disk.2
-rw-r--r-- 1 oneadmin oneadmin 322122547200 Aug 11 10:09 disk.3

```

but the current used is only disk.3  
I would like to know how can I remove the disk.0  
I don’t need to rollback the last deployment.

For you information the disk.0 is still available because I suppose I have detach it and it was a persistent disk. Then I have removed the persistence and I have attach again so, to due to ssh type datastore, it creates the disk.3

I’m using OpenNebula 5.4

Thanks in advance,

Simone
