implement delete command