Added delete functionality in Sample code