Cant remove file on ADLS using dbutils.fs.rm because url contains illeagal character

msgrac
New Contributor II

The URL contains a "[" within, and I've tried to encode the path from "[" to "%5B%27", but it didn't work: 

 

from urllib.parse import quote
path = ""
encoded_path = quote(path)

msgrac
New Contributor II

In my url, [ is followed by ', therefore I missed typing for an additional %27
but I still encountered the same issue with the remove response back False