I created an empty read-only directory:
mkdir -m 400 ~/Desktop/hello
As per the octal permission, it indicates the directory has read only permission. But contrast to that when I am using the following command the directory was deleted:
rmdir ~/Desktop/hello
How is this possible to delete the directory when it is read only?