Delete a file owned by root

If I have a file owned by root in a folder owned by me, I can delete it from command line using “rm -f XXX”. But if I try to delete it using g_file_detele(), it fails. How can I delete it?

If g_file_delete gives a permission denied error you can use admin:// uri scheme to remove it using escalated priviliges.

Ok, I don’t know why, but now it does work…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.