C
@MJ On my Pycom.gpy I imported os, took a look at the directory, then os.remove('FILE NAME')
>>> import os
>>> os.listdir()
['sys', 'lib', 'cert', 'boot.py', '%1', 'test2.py', 'project.pymakr']
>>> os.remove('test2.py')
>>> os.listdir()
['sys', 'lib', 'cert', 'boot.py', '%1', 'project.pymakr']
>>>