Fly machines automatically delete?

Are you asking if there’s a convenient way for a machine to auto-destroy itself after it exits?

If so, we recently added support for this in the machine config with the auto_destroy field (it’s a top-level field in the config). And there’s a pre-release version of the CLI adding a --rm flag to fly machine run to enable this behavior.

3 Likes