cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

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)
2 REPLIES 2

Kaniz
Community Manager
Community Manager

Hi @msgrac, To encode it, you should use %5B instead of trying to encode it as “%5B%27”.

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

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.