I use sticky notes to record some information. I deleted this info by accident. Is it recoverable?
As far as I know, the content for your stickies notes is stored in $HOME/Library/StickiesDatabase. If you are using Time Machine, or some other mechanism to do back-ups for your data that include this database, then you can try restoring an older version of this database to recover your data. Because of the way the Stickies app maintains its data (in a database), without access to some previous version of the database file, there's really no way to reliably recover Stickies notes.
I think the accepted answer no longer holds. My version: OS X 10.9.4
I had some dashboard stickies disappear after a dashboard crash and was searching how to recover them (I had a recent TimeMachine backup).
What did the trick was replacing the files:
in the directory
/Users/YOUR_USER_NAME/Library/Preferences with the old ones.
In my case the file $HOME/Library/StickiesDatabase was unmodified for the last couple of months, period during which I had created/deleted dashboard sticky notes.
The link above is definitely the way to recover deleted stickies notes: ~/Library/Containers/com.apple.Stickies/Data/Library/Stickies
If you go into Time Machine and travel back to this folder, you will find your stickies notes. You do not even need to 'enter time machine'. You can simply double click on the TM icon for the external hard drive and navigate to the folder to retrieve the stickie you are looking for.
All the advice on the internet about restoring ~/Library/StickiesDatabase is wrong - at least, it is wrong for Catalina.