Reformatting BG77 flash

hi, how can I reformat the BG77 flash?

context: on some devices there isn’t enough space to download a firmware image, even though no files are visible that would be taking up space.