Drop command question

I’d like to drop all mail\ dbs prior to compacting; I know that drop all drops all connections and drop “mail<name>.nsf” would drop a specific db.

Is there any way to drop all .nsf files in the mail\ subfolder without individually naming them?

Thanks!

Subject: RE: Drop command question

Why would you delete all the users mail files prior to compacting them?

in the dos world: del F:\Lotus\Domino\Data\mail*.nsf

Subject: RE: Drop command question

Tom,

I think he wants to drop the user sessions to the database while he’s compacting.

Problem is that you can drop the user sessions, but you’d have to know which mail file corresponds to the usersession prior to compacting, right?

But you could load an Indirect file (.ind) file and run that?

Haven’t tried this in R6, but can you still run a batch file using the console command “< filename.txt” where filename lists all the commands you want to run. Course then you’d have to stick around and watch it run :slight_smile:

Subject: RE: Drop command question

Marilyn,Perhaps that is what he is talking about. Good idea about the batch file. You could also create an agent to shell out out to the .bat/.cmd file, that way you would not need to be around to watch it run.

I wonder if program docs can issue a drop all?

Subject: RE: Drop command question

Yeah, but then the drop all wouldn’t guarantee that that the person wouldn’t be in their mail file when compact started, so compact would abort.

He would want to do something like this, right?

drop usera

was user dropped? if so then compact mail\userafile.nsf

Then, of course there are those hung sessions that happen :slight_smile:

Subject: RE: Drop command question

Oh boy! ha haWe compact "mail" at 3-4am-- No one is actually doing anything in their mail files at that time/no mail should be routed into their files at that time, but one or two employees will keep the inbox screen open, causing errors on compact/the trash never gets emptied.

I just wanted a way to tell the system “hey, go ahead and drop everyone prior to compact” to make sure the soft deletes process/compact works properly. I think drop all might do the trick; it just seemed a little too wide a scope to drop ALL on the server when I’m just trying to compact mail.

Thanks so much for the replies!

Todd