Skip to content
TimescaleDB - Timeseries database for PostgreSQL Docs
  • Timescale.com
  • Try for free
Get started
Create your first Timescale service
Try the key Timescale features
Start coding with Timescale
About Timescale products
Timescale architecture for real-time analytics
Pricing plans and account management
Changelog
Use Timescale
Hypertables
Hypercore
Continuous aggregates
Tutorials
Integrations
API Reference
Migrate and sync data to Timescale Cloud
AI and Vector: pgai on Timescale
Other deployment options
Find a docs page
Use Timescale

Data retention

Data retention helps you save on storage costs by deleting old data. You can combine data retention with continuous aggregates to downsample your data.

In this section:

  • Learn about data retention before you start using it
  • Learn about data retention with continuous aggregates for downsampling data
  • Create a data retention policy
  • Manually drop chunks of data
  • Troubleshoot data retention

Keywords

continuous aggregatesdata retentiondownsample

Found an issue on this page?Report an issue or Edit this page in GitHub.

PreviousAlertingNextAbout data retention

Related Content

About data retention with continuous aggregates
Combine continuous aggregates with data retention to save on raw data storage while keeping summarized data for historical analysis
timescaledb_experimental.policies
Get information about all policies set on continuous aggregates
Continuous aggregates
Lightning fast queries are a must for efficient real-time analytics. Timescale Cloud continuous aggregates make sure you always have the latest aggregated data at your fingertips
add_policies()
Add refresh, compression, and data retention policies on a continuous aggregate
show_policies()
Show all policies that are currently set on a continuous aggregate
alter_policies()
Alter refresh, compression, or data retention policies on a continuous aggregate