rejetto forum

How can I delete accounts in a batch?

Guest · 2 · 2644

0 Members and 1 Guest are viewing this topic.

woodfold

  • Guest
I'm using the debug/run script command in v2.3beta build 280. I can create accounts by the hundreds, but need a way to remove them as easily.

I found a reference to {.delete account.} but I can't get the syntax right.
I've tried variations on:
Code: [Select]
{.set account |S1017 .}
{.delete account S1017.}

What I get is: <div class=macroerror>macro error: delete account<br>not supported or illegal parameters</div>

Can anyone point me in the right direction?
« Last Edit: July 23, 2012, 07:10:10 PM by woodfold »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
you simply forgot the pipe  ;)

{.delete account | S1017.}

you can use a loop to do your job with a list of accounts

{.for each | temp | S1017 | S1018 | S1005 | S1025 | S1014 | {:{.delete account | {.^temp.}.}:} .}

consider temp as a variable,
 S1017 , S1018 , S1005 , S1025 , S1014  are the accounts to be deleted
« Last Edit: July 23, 2012, 10:06:14 PM by Mars »