lxd/storage_pools_utils.go
func dbStoragePoolDeleteAndUpdateCache(db *db.Cluster, poolName string) error {
	_, err := db.StoragePoolDelete(poolName)
	if err != nil {
		return err
	}

	// Update the storage drivers cache in api_1.0.go.
	storagePoolDriversCacheUpdate(db)

	return err
}
func dbStoragePoolDeleteAndUpdateCache(db *db.Cluster, poolName string) error {
	_, err := db.StoragePoolDelete(poolName)
	if err != nil {
		return err
	}

	// Update the storage drivers cache in api_1.0.go.
	storagePoolDriversCacheUpdate(db)

	return err
}
// Helper around the low-level DB API, which also updates the driver names
// cache.