lxd/db/storage_volumes.go
func (c *Cluster) StorageVolumeCleanupImages(fingerprints []string) error {
	stmt := fmt.Sprintf(
		"DELETE FROM storage_volumes WHERE type=? AND name NOT IN %s",
		query.Params(len(fingerprints)))
	args := []interface{}{StoragePoolVolumeTypeImage}
	for _, fingerprint := range fingerprints {
		args = append(args, fingerprint)
	}
	err := exec(c.db, stmt, args...)
	return err
}
func (c *Cluster) StorageVolumeCleanupImages(fingerprints []string) error {
	stmt := fmt.Sprintf(
		"DELETE FROM storage_volumes WHERE type=? AND name NOT IN %s",
		query.Params(len(fingerprints)))
	args := []interface{}{StoragePoolVolumeTypeImage}
	for _, fingerprint := range fingerprints {
		args = append(args, fingerprint)
	}
	err := exec(c.db, stmt, args...)
	return err
}
func ( c * Cluster ) StorageVolumeCleanupImages ( fingerprints [ ] string ) error { stmt := fmt . Sprintf ( " " , query . Params ( len ( fingerprints ) ) ) args := [ ] interface { } { StoragePoolVolumeTypeImage } for _ , fingerprint := range fingerprints { args = append ( args , fingerprint ) } err := exec ( c . db , stmt , args ... ) return err }
// StorageVolumeCleanupImages removes the volumes with the given fingerprints.
StorageVolumeCleanupImages removes the volumes with the given fingerprints .