Change delete to restore (fixed #42)