rm -rf "$HOME/.quicklock/locks/"*
does seem to remove files or folders in the locks directory, which start with "."
how can I remove those files too? Any other filenames that would fail to be removed given that command?
You can use a clever combination of wildcards to avoid
rm -fr .??*
would be one of them, which works if you don't have any files or directories that are only 2 characters long (like
.x for example).
rm -fr .[!.]*
does that job better.
I got a suggestion to do this:
rm -rf "$HOME/.quicklook/locks"; mkdir -p "$HOME/.quicklock/locks";
should work, I guess.