os_nextcloud

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
os_nextcloud [2026/02/20 06:35] – [Required packages] Júne Parkos_nextcloud [2026/05/19 00:57] (current) – [Force Deletion After Exactly 30 Days] Júne Park
Line 386: Line 386:
  
 </code> </code>
 +
 +----
 +
 +==== Force Deletion After Exactly 30 Days ==== 
 +
 +Locate and open your Nextcloud config.php file (typically found in ''/path/to/nextcloud/config/config.php'').
 +
 +Add or modify the following line inside the ''$CONFIG = array'' ( block: 
 +
 +<code php> 
 +'trashbin_retention_obligation' => '30, 30',
 +</code> 
 +
 +//(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, run: 
 +
 +<code bash> 
 +sudo -u www-data php /path/to/nextcloud/occ trashbin:expire
 +</code>
 +
  
 ---- ----
  • os_nextcloud.1771569319
  • Last modified: 2026/02/20 06:35
  • by Júne Park