Bulk Delete an Extensions Voicemails Debian

Status
Not open for further replies.

user57659

Premier Customer
Joined
Aug 14, 2019
Messages
20
Reaction score
1
I have an extension that has been spammed, it now has 2900 voicemail messages.

I would like to bulk delete all the voicemails for this extension

I have tried this below:

cd /var/lib/3cxpbx/Instance1/Data/Ivr/Voicemail/Extensions/4280

sudo rm -rf *

then I get an error message

unable to execute /bin/rm: Argument list too long

Any help would be appreciated
 
Hello @user57659

I have not tried deleting some many voicemails but the following command worked for me:
Code:
rm -rf /var/lib/3cxpbx/Instance1/Data/Ivr/Voicemail/Extensions/4280/*

Alternatively you can access the instance using an FTP client and delete them that way.
 
I tried the above command and all the messages are still there, not sure how to do the FTP option
 
You can download an FTP client like Filezila or WinSCP and access the Debian instance that way. Then you can navigate to the folder like you would do in Windows and delete its contents.
 
Status
Not open for further replies.

Forum statistics

Threads
111,933
Messages
589,810
Members
164,808
Latest member
jsbjsb