complete the two api delete and get from snapshot. Get api need to be improved.