added type into delete command