Yes,
The problem is the Asterix - which expands in this case to 'all users' - and then followed by a specific path..
So you are in fact (trying) to specify multiple paths - as a single path..
While a human could understand (the intent) of this - the poor computer cannot do so..
The command cannot be expanded..
Instead you would need to put this kind of delete command into a loop.
The loop would need to loop through each account
- specifying the exact path in each of those particular accounts, that you were trying to delete..
thus for each particular account, you are trying to:
rm -rf ${user account}/Library/Application Support/Google/Chrome
As this involves accounts other then your own it would need to run with root privileges, else it would fail.
So something like: ( PS: Below is an 'ls - ONE , NOT ls - L )
<code>
!/bin/bash
AccountList=$(ls -1 /Users)
for account in ${AccountList}; do
echo "Working on Account: ${account}"
rm -rf /Users/${account}/Library/Application Support/Google/Chrome
done
</code>