fix delete according to mock implementation