added /.../destroy apis.
refuctored.