---
title: Cleanup Settings
description: "This tab helps you manage your database by automatically or manually deleting old notifications. ### Section: Database Cleanup #### 1. Automatic Cleanup Set how long notifications should stay in your database: 1. Click the dropdown 2. Choose from: - 7…"
url: "https://nelxstudio.com/docs/cleanup-settings/"
updated: "2026-04-27"
category: Nelx Notification System
---

# Cleanup Settings

This tab helps you manage your database by automatically or manually deleting old notifications.

### Section: Database Cleanup

#### 1. Automatic Cleanup

Set how long notifications should stay in your database:

1. Click the dropdown
2. Choose from:
   - 7 days
   - 14 days
   - 21 days
   - 30 days (default)
   - 60 days
   - 90 days
   - Never (keep all notifications/only delete manually)

Once enabled, the system will automatically delete notifications older than your chosen period. This will only happen if you add the Cron command (see step 6 below) to your server's crontab

#### 2. CCT Slug

Enter the same CCT slug you configured in the API/Query tab. This tells the cleanup system which table to work with.

#### 3. Manual Cleanup

Delete old notifications right now:

1. Enter the number of days (e.g., 30 for notifications older than 30 days)
2. Click **Clean Up Now**
3. The system will immediately delete matching notifications

#### 4. Table Verification

Check if your CCT table is accessible:

1. Click **Verify Table Access**
2. You'll see a confirmation with:
   - Total number of notifications
   - Date of the oldest notification

![](https://nelxstudio.com/wp-content/uploads/2026/03/nelx-notification-system-cleanup-A.jpg)

#### 5. Cron Command (Advanced)

For advanced users who want to set up automatic cleanup via server cron:

1. The system generates a secure command with a unique secret key
2. Copy this command to add to your server's crontab
3. Example schedule: `0 2 * * *` for daily at 2 AM

#### 6. Cron Verification

Test if your cron setup is working:

1. Add the Cron command to your server's crontab
2. Click **Verify Cron Setup**
3. The system will test the connection and show results

**Important:** The verification test will show how many notifications would be deleted according to your automatic cleanup settings. This is just a connection test, the real deletion will happen when the Cron runs.

![](https://nelxstudio.com/wp-content/uploads/2026/03/nelx-notification-system-cleanup-B-1.jpg)
