how do i push to a container AND reset any persisted storage volumes

balena push does not reset any persisted storage defined in docker volume commands

how can i push AND reset my container AND any associated persisted storage ?

heres a repo with a docker-compose.yml that illustrates the problem

Hi, you are likely looking for the purge data command. See this for more details https://www.balena.io/docs/learn/manage/actions/#purge-data. That will enable you to purge all persistent data via the dashboard. If you were looking for a programatic way, the same can be achieved using the following method of the supervisor API https://www.balena.io/docs/reference/supervisor/supervisor-api/#purge-an-application-data-post-v2applicationsappidpurge.

1 Like