delete functinality and test