abstract delete command out into its own file