What is really great about iCloud is that you can restore the missing files.

Follow along:

  1. Sign in to iCloud.com.
  2. Click Settings.
  3. Scroll down and under Advanced, click Restore Contacts or Restore Calendar.
  4. Click Restore the date before you deleted it.
  5. Click Restore again to confirm.

Tip: When you choose to restore iCloud content, you’ll see any available archives to pick from. A current archive will be made just in case you want to restore to the state where you  are now. 

Also note, that any shared calendars will need to be set up again as they are removed during the restore process.

Good luck :)