# Delete records in Aerospike?

**URL:** <https://discuss.aerospike.com/t/delete-records-in-aerospike/6948>\
**Category:** Deletion\
**Created:** [December 16, 2019, 9:23am UTC](https://discuss.aerospike.com/t/delete-records-in-aerospike/6948 "2019-12-16T09:23:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmq1999](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@lmq1999](https://discuss.aerospike.com/u/lmq1999)\
**Post date:** [December 16, 2019, 9:23am UTC](https://discuss.aerospike.com/t/delete-records-in-aerospike/6948/1 "2019-12-16T09:23:52Z")

</div>

I’m tuning Aerospike, after I use `Recipe for an SSD Storage Engine` with this config:

```auto
namespace test {
        replication-factor 2
        memory-size 4G
        default-ttl 30d # 30 days, use 0 to never expire/evict.

        #storage-engine memory
        storage-engine device { # Configure the storage-engine to use persistence
        device /dev/vdb # raw device. Maximum size is 2 TiB
        # device /dev/<device> # (optional) another raw device.
        write-block-size 128K # adjust block size to make it efficient for SSDs.
    }
}

```

After run becnhmark 1st time, my SSD is completely full

```auto
quanlm@quanlm2:/mnt/device$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 395M 3.1M 392M 1% /run
/dev/vda1 60G 2.8G 54G 5% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/vdb 64Z 64Z 59G 100% /mnt/device
tmpfs 395M 0 395M 0% /run/user/1000

```

So is there anyway to delete the data in my SSD (/dev/vdb) ?

---

<div class="post-metadata">

**Author:** ![meher](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/meher/32/1644_2.png) [@meher](https://discuss.aerospike.com/u/meher)\
**Post date:** [December 17, 2019, 12:39am UTC](https://discuss.aerospike.com/t/delete-records-in-aerospike/6948/2 "2019-12-17T00:39:15Z")

</div>

You shouldn’t mount the device. Or configure it with a file if you want to have a file system. Refer to the following docs:

- [https://www.aerospike.com/docs/operations/plan/ssd/ssd\_setup.html](https://www.aerospike.com/docs/operations/plan/ssd/ssd_setup.html)
- [https://www.aerospike.com/docs/operations/configure/namespace/storage](https://www.aerospike.com/docs/operations/configure/namespace/storage)
