Adding Shard deletion code, using it in test.