How to stop TextEdit from showing recently accessed files in Mac

HI,
I am using Textedit and when it appears in Dock and i do a right click on it it shows the following :
Screen-Shot-2016-09-17-at-6.08.34-PM.pngOn the top of this list it shows the list of recently accessed files.
How do i clear this and stop it from displaying anything.
Although if i go to Open Recent the list is Blank...
Screen-Shot-2016-09-17-at-6.10.46-PM.pngThe recent list i set an option generally to not show anything.. But its still shows when i right click on the TextEdit.

Thanks
Rohit BajajAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

strungCommented:
You can globally stop all applications from showing recent items by going to System Preferences > General and setting Recent Items to Zero.
0
serialbandCommented:
The setting may be None instead of Zero
That stops all applications that use the system, such as TextEdit from showing recent items, but unfortunately that doesn't stop the system from saving them to the 2nd plist file that shows on the dock.  Some applications use their own recent items list, such as Microsoft Office.

I've just clear them manually as I use them, since I find some of the recent items useful.

I haven't yet tried myself, since I want to keep my textedit plist, but you may be able to also clear each app individually if you still want to show recent items in other apps
defaults delete com.apple.TextEdit.LSSharedFileList.plist RecentDocuments
defaults delete com.apple.TextEdit.SandboxedPersistentURLs.LSSharedFileList.plist RecentDocuments

You'll find them in ~/Library/Preferences/

I think it may be due to the extra plist, com.apple.TextEdit.SandboxedPersistentURLs.LSSharedFileList.plist
I Got the idea from https://simon.heimlicher.com/articles/2011/07/26/disable-recent-items then examining ~/Library/Preferences/ to find 2 plists for TextEdit and Preview.  I suspect that setting the global setting toggles the first plist file, but not the SandboxedPersistentURLs.
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mac OS X

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.