rewrite front-end delete logical