def api_v1_delete_file(filename): Rom.objects(filename=filename).delete() return '', 200
def delrom(filename): Rom.objects(filename=filename).delete()
def check_builds(): for r in Rom.objects(): if requests.head(r.url).status_code == 404: print("Rom.objects(filename=\"{}\").delete()".format(r.filename))