You need to import them again. You can import them from your devices back. Maybe you need to think about a backup for the future.
If you don't like to see all your books on your Calibre page you can define filters to reduce the displayed books to what you like to see. Only a suggestion.