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