adds local mangement command to delete a recrd