method delete works