Skip to main content
secdetkrypton2
New Member
May 4, 2025 11:44 PM UTC
Question

How to Delete Users on FortiMail Using CLI Commands

Hi, I’m trying to delete multiple users in FortiMail using a script, but the command config user local doesn’t work. What’s the correct command to delete users via a media script?

 

1 reply

AEK
SuperUser
SuperUser
May 5, 2025 4:31 PM UTC

Hi

Did you try this:

config domain
edit domain-name
config user mail

Ref: FortiMail 7.2.2 CLI ref

 

Then it should be "delete user-name".

I don't have a lab FML to test it but I believe it should be the right method.

 

Hope it helps

AEK
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT