Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| os_nextcloud [2026/02/20 06:35] – [Required packages] Júne Park | os_nextcloud [2026/05/19 00:57] (current) – [Force Deletion After Exactly 30 Days] Júne Park | ||
|---|---|---|---|
| Line 386: | Line 386: | ||
| </ | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Force Deletion After Exactly 30 Days ==== | ||
| + | |||
| + | Locate and open your Nextcloud config.php file (typically found in ''/ | ||
| + | |||
| + | Add or modify the following line inside the '' | ||
| + | |||
| + | <code php> | ||
| + | ' | ||
| + | </ | ||
| + | |||
| + | //(Setting both a minimum and maximum of 30 days guarantees the files will be purged exactly on that day).// | ||
| + | |||
| + | Ensure your Nextcloud background jobs are running. To force the deletion of already expired files from the command line immediately, | ||
| + | |||
| + | <code bash> | ||
| + | sudo -u www-data php / | ||
| + | </ | ||
| + | |||
| ---- | ---- | ||