Open
Description
#6144 will introduce an API to manage datasets, called dataset_ensure
.
Sled agent exposes a few endpoints like this, to "ensure the set of _____ exactly matches a provided configuration". Usually, these endpoints delete entries which don't match the input set.
However, with datasets, since many of our datasets are implicitly created by the sled agent, doing so would be a dangerous operation.
This issue tracks "eventually, we should remove datasets that don't match the expected configuration", once doing so is a safe operation.