Um, there is no "uninstall" program in Linux and removing a program is generally done with a package manager. But it depends on how you installed it.
I'm assuming you've installed "standalone" Confluence, which is a matter of
If you're struggling to delete the installation directory, then you need to investigate that - read the error message it gives you and fix that problem first.
Assuming you're using Nautilus as your file manager here, you'll find the lock means "you don't have permission to do this". I'd guess you've installed confluence under a different user id - you'll need to swap to that user or change permissions on the folder using a process with root access.
Forgetting where your data directory, we can't help you with - you'll need to find it (look in your home folder, or that of the user you installed it as, to begin with). If confluence was running, you could just look in system info, but if you've dropped the database, I don't think it'll start up.
Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time! We're looking for people to participate in a remote 1-hr workshop...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs