Implement delete handling and do more checks to make sure we dont get corrupted ical files