implemented deleteResource in Store