how to delete a folder in databricks mnt?

nmud19
New Contributor II

I have a folder at location dbfs:/mnt/temp

I need to delete this folder. I tried using

%fs rm mnt/temp

&

dbutils.fs.rm("mnt/temp")

Could you please help me out with what I am doing wrong?