Delete old emails have no effect

aadipop

Member
Jan 26, 2016
13
2
53
Cluj-Napoca
cPanel Access Level
Root Administrator
Hello,

I'm trying to delete emails older than 136 weeks from cPanel (whm v96.0.11) -> Email Disk Usage -> Manage -> Custom query -> savedbefore 136weeks -> Success: The operation on “INBOX” succeeded. -> but the emails are not deleted.

Any hints? :)

Thanks
 

quietFinn

Well-Known Member
Feb 4, 2006
1,329
141
193
Finland
cPanel Access Level
Root Administrator
Hello,

I'm trying to delete emails older than 136 weeks from cPanel (whm v96.0.11) -> Email Disk Usage -> Manage -> Custom query -> savedbefore 136weeks -> Success: The operation on “INBOX” succeeded. -> but the emails are not deleted.

Any hints? :)

Thanks
Maybe you can find help here:
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,491
1,008
313
cPanel Access Level
Root Administrator
It's possible that the account was migrated to the current server in the last 136 weeks, which affects the timestamp used in that command. If that is the case, you'd need to manually remove the emails from the filesystem directly through SSH or File Manager.
 

aadipop

Member
Jan 26, 2016
13
2
53
Cluj-Napoca
cPanel Access Level
Root Administrator
It's possible that the account was migrated to the current server in the last 136 weeks, which affects the timestamp used in that command. If that is the case, you'd need to manually remove the emails from the filesystem directly through SSH or File Manager.
hmm ... it is possible to be a migrated account ... but if I try to get the size of files older than 136 weeks from cli `find . -type f -mtime +952 -printf '%s\n' | awk '{a+=$1;} END {printf "%.1f GB\n", a/2**30;}'` I got the expected size ... I suppose that means that the files are timestamped correctly

is there any ex. for deleting emails older than x days/weeks from cli?