Is there a way to delete custom functions (e.g. extractZipCode in the screenshot below) from the QGIS Field Calculator without having to look into the expressions folder on disc?

I know I can simply delete the Python script in this folder:


But is there a way to actually do it from within QGIS?

enter image description here

  • 2
    Would be nice if they added a Delete file button next to New file. But if you want to do it within QGIS then I guess you could use the Python Console: import os; os.remove('C:/Users/admin/.qgis2/python/expressions/example.py') – Joseph Mar 22 '17 at 11:27

QGIS 3.14 has a remove button to the Function Editor tab. Changelog

enter image description here

| improve this answer | |

One way which I found to do that is to erase the definition of the function from the Function Editor tab and you won't see the function name under the 'Custom' functions list .

| improve this answer | |
  • You mean just erasing the entire content? Or removing the name (New File), which is created on the left-hand side in the Function Editor? In the latter case, how would you do that? Right-clicking does not seem to work... – BritishSteel Mar 28 '17 at 10:47
  • By erasing the definition I meant to erase the contents of the file. The latter functionality is not yet available in QGIS. – nash Mar 28 '17 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.