If your Steam games have been accidentally deleted, you can try the following fixes to recover them:
Check the Recycle Bin (Windows) or Trash folder (Mac) to see if the deleted game is still there.
If the game is accessible, right-click on it, go to “Properties,” then select “Installed Files,” and click on “Verify Integrity of Game Files.”
Use Steam’s backup feature to restore your games.
Restore your files from a Steam backup folder.
Restore from a Previous Version backup.
If none of the above methods work, you can use data recovery software to attempt to recover your game files.