func rmClusterSpec()

in configs/main.go [106:121]


func rmClusterSpec(configbucket, scanid string) error {
	cfg, err := config.LoadDefaultConfig(context.TODO())
	if err != nil {
		return err
	}
	svc := s3.NewFromConfig(cfg)
	_, err = svc.DeleteObject(context.TODO(), &s3.DeleteObjectInput{
		Bucket: aws.String(configbucket),
		Key:    aws.String(scanid + ".json"),
	})
	// _, err = req.Send(context.Background())
	if err != nil {
		return err
	}
	return nil
}