rewrite delete feature to spec