---
title: "Discussion on \"Data Retention Policies: Automating Cleanup in TimescaleDB\" | Hashnode"
description: "Discussion on \"Data Retention Policies: Automating Cleanup in TimescaleDB\". Stop Using DELETE for Time-Series Cleanup: TimescaleDB Retention Policies\nIf you are running DELETE FROM metrics WHERE timestamp < now() - INTERVAL '30 days' on a cron job, you are doing it the hard way. That single statement on a 500 GB table create..."
url: "https://hashnode.com/posts/data-retention-policies-automating-cleanup-in-timescaledb/69b3e02619c6a8f97c7bc6d0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Data Retention Policies: Automating Cleanup in TimescaleDB](https://postgresdba.hashnode.dev/data-retention-policies-automating-cleanup-in-timescaledb?utm_source=hashnode&utm_medium=feed)

Stop Using DELETE for Time-Series Cleanup: TimescaleDB Retention Policies If you are running DELETE FROM metrics WHERE timestamp < now() - INTERVAL '30 days' on a cron job, you are doing it the hard way. That single statement on a 500 GB table create...

Mar 13 · 4 min read · postgresdba.hashnode.dev  
Read the article

-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#timescaledb](https://hashnode.com/tag/timescaledb)
-   [#database](https://hashnode.com/tag/database)

## Written by

[Philip McClarence](https://hashnode.com/@pgdba)

@pgdba · London, UK

  
[View profile](https://hashnode.com/@pgdba)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
