improved tmpfs cleanup with rest api