add delete fragment

1.add delete fragment;
2.reconstruct the code