How to update Dock preview to Applications folder after hiding apps with chflags
I tested it and doing killall Dock in Terminal.app does the job.


  This specific killall command will essentially restart Dock and therefore the Applications folder preview gets updated as well.






Alternatively you can open /Applications/Utilities/Activity Monitor.app search for Dock, select it and click the X in the top left corner of the window.