File Delete from Appdata Location

Hi, what action I can use here to delete single file eclipse.ini through action

tried some command but its not work, please assist.

delete "C:\Users\public\AppData\Local\WD\studio\eclipse.ini

runhidden powershell.exe -ExecutionPolicy Bypass Remove-item -Path "C:\Users*\AppData\Local\WD\studio\eclipse.ini" -Force

delete “{pathname of descendant whose(size of it = maximum of sizes of descendants of folders “AppData\Wd\Studio\eclipse.exe” of folders whose (exists folder “AppData\Wd\Studio\eclipse.exe” of it) of folder “users” of drive of system folder) of folders “AppData\Wd\Studio\eclipse.exe” of folders whose (exists folder “AppData\Wd\Studio\eclipse.exe” of it) of folder “users” of drive of system folder}”

Did you check the corresponding yyyyMMdd.log from the BESClient for your test actions to review the action details?

For additional details on logging and BigFix please review this wiki.

delete __createfile
createfile until _end_
{("del %22" & pathname of it & "%22 /q%0a") of files whose(name of it as lowercase = "eclipse.ini") of folders "AppData\Local\WD\studio" of folders of folder "C:\users"}
_end_
delete delfile.cmd
copy __createfile delfile.cmd
waithidden delfile.cmd
delete delfile.cmd
delete __createfile
2 Likes

They don’t match - which do you mean?

1 Like

both I have tried ,

C:\Users\public\AppData\Local\WD\studio\eclipse.ini with delete command
C:\Users*\AppData\Local\WD\studio\eclipse.ini" with power shell

Thanks it’s work… :slight_smile:

2 Likes