> For the complete documentation index, see [llms.txt](https://hive-db.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hive-db.gitbook.io/docs/documentation/subtract.md).

# Subtract

To subtract a numeric value into a key which stores a numeric datatype.

Example:-

```javascript
const db = require('hive-db')

db.subtract('bio.age',1);
// output on 'getting' the value => 21
```
