EmonPI dev/root

I am trying to update the emonpi but the /dev/root partion is full

pi@emonpi(rw):~$ df -BM
Filesystem     1M-blocks  Used Available Use% Mounted on
/dev/root          3410M 3394M        0M 100% /
devtmpfs            481M    0M      481M   0% /dev
tmpfs               486M    0M      486M   0% /dev/shm
tmpfs               486M   13M      473M   3% /run
tmpfs                 5M    1M        5M   1% /run/lock
tmpfs               486M    0M      486M   0% /sys/fs/cgroup
tmpfs                40M    0M       40M   0% /var/lib/openhab
tmpfs                 1M    1M        1M   1% /var/lib/dhcpcd5
tmpfs                50M    7M       44M  13% /var/log
tmpfs                30M    1M       30M   1% /tmp
tmpfs                 1M    1M        1M   1% /var/lib/dhcp
/dev/mmcblk0p1       60M   22M       39M  37% /boot
/dev/mmcblk0p3    25582M 2583M    21679M  11% /home/pi/data

Does anyone know to resize it or free up some space. I have already “ran sudo apt-get clean”

Server Information
Emoncms Version low-write 9.8.28 : 2018.01.27
Modules Administration : App v1.1.0 : Backup v1.1.2 : EmonHub Config v1.0.0 : Dashboard v1.1.1 : EventProcesses : Feed : Graph v1.2.0 : Input : postprocess : CoreProcess : Schedule : setup : Time : User : Visualisation : WiFi v1.0.0
Buffer loading…
Writer Daemon is running with sleep 60s
Server OS Linux 4.9.35-v7+
Host emonpi emonpi (127.0.1.1)
Date 2018-04-22 09:19:26 BST
Uptime 09:19:26 up 6:22, 2 users, load average: 0.75, 0.90, 0.62
HTTP Server Apache/2.4.10 (Raspbian) HTTP/1.1 CGI/1.1 80
MySQL Version 5.5.60-0+deb8u1
Host localhost (127.0.0.1)
Date 2018-04-22 09:19:26 (UTC 01:00‌​)
Stats Uptime: 22942 Threads: 3 Questions: 23869 Slow queries: 1 Opens: 199 Flush tables: 1 Open tables: 51 Queries per second avg: 1.040
Redis Version 2.8.17
Host localhost:6379 (127.0.0.1)
Size 533 keys (611.72K)
Uptime 0 days
MQTT Version 1.4.14
Host localhost:1883 (127.0.0.1)
Pi CPU Temp 55.84°C
Release emonSD-07Nov16
File-system Set root file-system temporarily to read-write, (default read-only)
Memory RAM Used: 21.92% Total: 970.93 MB Used: 212.79 MB Free: 758.14 MB
Disk Mount Stats
/ Used: 99.53% Total: 3.33 GB Used: 3.31 GB Free: 0 B
/boot Used: 36.32% Total: 59.95 MB Used: 21.77 MB Free: 38.17 MB
/home/pi/data Used: 10.10% Total: 24.98 GB Used: 2.52 GB Free: 21.17 GB
PHP Version 5.6.33-0+deb8u1 (Zend Version 2.6.0)
Modules apache2handler : bcmath : bz2 : calendar : Core v5.6.33-0+deb8u1 : ctype : curl : date v5.6.33-0+deb8u1 : dba : dio v0.0.4RC4 : dom v20031129 : ereg : exif v1.4 : fileinfo v1.0.5 : filter v0.11.0 : ftp : gettext : hash v1.0 : iconv : json v1.3.6 : libxml : mbstring : mcrypt : mhash : mosquitto v0.3.0 : mysql v1.0 : mysqli v0.1 : openssl : pcre : PDO v1.0.4dev : pdo_mysql v1.0.2 : Phar v2.0.2 : posix : readline v5.6.33-0+deb8u1 : redis v2.2.7 : Reflection : session : shmop : SimpleXML v0.1 : soap : sockets : SPL v0.2 : standard v5.6.33-0+deb8u1 : sysvmsg : sysvsem : sysvshm : tokenizer v0.1 : wddx : xml : xmlreader v0.1 : xmlwriter v0.1 : Zend OPcache v7.0.6-devFE : zip v1.12.5 : zlib v2.0 :

Client Information
HTTP Browser Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
Screen Resolution 1920 x 1080
Window Size 1903 x 948

you could try a find command to look for large files:

find . -type f -printf "%s\t%p\n" | sort -n | tail -10

 
Then decide which ones aren’t needed. So I could dump a unusually large log file and a backup file and save ~224 MB.

find . -type f -printf "%s\t%p\n" | sort -n | tail -10
17392464	./data/phptimeseries/feed_65.MYD
18874368	./data/mysql/ibdata1
31794436	./data/phpfina/33.dat
34936232	./data/phpfina/19.dat
35215968	./data/phpfina/12.dat
35216380	./data/phpfina/10.dat
35457292	./data/phpfina/3.dat
35491756	./data/phpfina/1.dat
83384219	./data/2018-04-06 at 21.58.45 - ecobee.log
141825284	./data/emoncms-backup-2018-02-07.tar.gz
pi@emonpi(ro):~$