undo using session to delete unused database