# How to fix: "no space left on device" when pushing to local device?

**URL:** <https://forums.balena.io/t/how-to-fix-no-space-left-on-device-when-pushing-to-local-device/4818>\
**Category:** balenaOS\
**Tags:** support, raspberrypi3\
**Created:** [December 25, 2018, 10:01pm UTC](https://forums.balena.io/t/how-to-fix-no-space-left-on-device-when-pushing-to-local-device/4818 "2018-12-25T22:01:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexb](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alexb/32/1404_2.png) [@alexb](https://forums.balena.io/u/alexb)\
**Post date:** [December 25, 2018, 10:01pm UTC](https://forums.balena.io/t/how-to-fix-no-space-left-on-device-when-pushing-to-local-device/4818/1 "2018-12-25T22:01:33Z")

</div>

Hi Balena.

I’m developing a project in development/local mode. It has been working good for some time, but now when I do:

```
sudo balena push <local_address> -s .

```

I get the error “no space left on device”. How do I clean up space on the device, and in the future how do I prevent this from happening?

---

<div class="post-metadata">

**Author:** ![spanceac](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@spanceac](https://forums.balena.io/u/spanceac)\
**Post date:** [January 18, 2019, 9:31am UTC](https://forums.balena.io/t/how-to-fix-no-space-left-on-device-when-pushing-to-local-device/4818/2 "2019-01-18T09:31:00Z")

</div>

Hi,

What version of the OS are you using?

---

<div class="post-metadata">

**Author:** ![alexb](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alexb/32/1404_2.png) [@alexb](https://forums.balena.io/u/alexb)\
**Post date:** [January 18, 2019, 9:42am UTC](https://forums.balena.io/t/how-to-fix-no-space-left-on-device-when-pushing-to-local-device/4818/3 "2019-01-18T09:42:12Z")

</div>

hi @spanceac, I ended up flashing a new SD card. I’m 99% sure the version was the newest.
