• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved cronjobs command for delete old files in specific folders

dickography

New Pleskian
hai all, i am new here.

need help on what command to delete files in certain days/weeks/months in certain folders?

to delete for example file within a week "y" folder.

can anybody give me example in plesk ?
 
nevermind, already found what i'm looking for..

in plesk i use this command to delete file more than 30days in specific folder:

/var/www/example.com/wp-content/targetdir -type f -mtime +30 -delete
 
Back
Top