Unfortunately Garmin has recently disabled historical data fetch for all authenticated users. You need to disconnect from Garmin and then re-connect, ticking the “Historical data” toggle. Then the undelete might work.
If that fails then you need to download the files from Garmin Connect and upload using the “Upload” button on the calendar page or use the “Import All Garmin Data” button in the Garmin box in /settings/connections.