Delete stack version
Uses the deleted flag, which removes only that version of the Elastic Stack from the list of available versions. To restore the version, send an update request. For more information, see the PUT request.
DELETE
/stack/versions/{version}
curl \
--request DELETE 'https://{{hostname}}/api/v1/stack/versions/{version}' \
--user "username:password"