Deleting Files - Pico MicroPython

Why doesn’t this work (it says it does)?

import os
config = "state.json"
try:
    os.remove(config)
    print("Config deleted successfully")
except OSError:
    print("Error deleting config")  # Handle potential errors

I’ve checked the path (/) and filename.
& I’ve tried import uos / uos.remove(config) as well as os.unlink(config) too.

What am I missing?