3

enter image description here

How to remove these bunch of files from here. I use VS code, when I debug a program it asks for this permission that a file that is created while debugging wants to access your Document folder. And every time I have to allow it and then those files end up in Privacy -> "Files and Folders".

enter image description here

1
  • 1
    This is only for your Desktop, Downloads, and Documents folders. Can you direct VS Code to save these projects in a different folder?
    – fsb
    Jul 28 '20 at 19:32
2

Run

tccutil reset SystemPolicyDocumentsFolder
tccutil reset SystemPolicyDownloadsFolder
tccutil reset SystemPolicyDesktopFolder

They are case sensitive.

Sources:

If the above is too cumbersome,

tccutil reset

which resets all permissions across all profiles.

tccutil.py is outdated and even after disabling SIP, it will not give meaningful info about the database:

/Library/Application Support/com.apple.TCC/TCC.db
2
  • To reset everything, it is tccutil reset not rest
    – The Matt
    Sep 14 at 15:14
  • @TheMatt thanks, fixed
    – anki
    Sep 15 at 4:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .