xattr command not working on Big Sur

The following code

Code Block bash
xattr -c filePath



does not clear the extended attributes of the file. Any reason why? I would like to clear the "last opened" extended attribute to clear the "Recents" smart folder.
I've discovered the command won't writing attributes either. And I just finished writing a bunch of code that depends upon setting and retrieving my own private attribute value. This could be a new security restriction. If so, using the C function calls to do this won't work either.

I just tried a sudo with the command and that didn't work either with it doing nothing yet returning a zero code.

Hopefully this is something we can change on an application basis in the Security & Privacy pane of System Preferences.
xattr command not working on Big Sur
 
 
Q