Delete All Messages from the Queue

This article describes the methods to delete all messages from the Axigen queue.

Solution

For clearing the Axigen queue, you can use one of the following methods:

  1. Use the CLI to delete emails matching a pattern, as described here
  2. Remove the Axigen queue directory:
    • Stop the Axigen service

      Note:

      For your own protection, we recommend you to make a copy of the queue folder before removing it.

    • Remove <path/to/work/dir>/queue/ directory
    • Start the Axigen service.
  3. Remove the Axigen queue files.
    • Stop the Axigen service

      Note:

      For your own protection, we recommend you to make a copy of the queue folder before removing it.

    • Depending on your OS:
      • On linux (terminal):
        # find /var/opt/axigen/queue/ -type f -name "[SD]*" -exec rm -f {} \;
      • On Windows (command prompt):
        >cd "C:\Program Files\Axigen Mail Server\queue" && del /S S* && del /S D*
    • Start the Axigen service.
  4. Note:

    The Axigen "<path/to/work/dir>" depends on your operating system:

    • /var/opt/axigen — for Solaris and Linux systems
    • /var/axigen — for *BSD systems
    • C:\Program Files\Axigen Mail Server — for Windows systems
OS: LinuxWindowsFreeBSDSolaris