New undelete function

Allows undeletions when soft delete is enabled.