Please wait...

Delete campaigns command

Deleting old campaigns, that you don't need anymore, will free up a lot of disk space.
This in turn will result in a faster application because there will be less data MailWizz has to go through in order to complete operations.
The delete-campaigns command will help you delete older sent campaigns, for example, campaigns older than 6 months.

The command has the following signature:

command: /usr/bin/php -q {ABSOLUTE_PATH_TO}/apps/console/console.php delete-campaigns

And accepts following arguments:

--time=EXPRESSION where EXPRESSION can be any expression parsable by php's strtotime function. ie: --time="-6 months".
--type=campaign type (accepts 'regular', 'autoresponder'). ie: --type="regular".

So a valid call to this command will look like:

/usr/bin/php /var/www/html/apps/console/console.php delete-campaigns --time="-6 months" --type="regular" --verbose=1

The above will delete the regular campaigns older than 6 months.

The command is interactive, it will ask you some questions and show you how many campaigns it will delete.