How to remove poll app

i installed poll app as testing, but now i want to remove it,
how to remove it cleanly.

bench remove-from-installed-apps poll

under root user?

Nope! In your frappe-bench directory!

I using
[frappe@123 frappe-bench]$ bench remove-from-installed-apps poll

but i still find Poll in desktop

@Gavin_Ji It’s listed in the desk, because the DocTypes are in the database, if you dont have sensive data in the instance you can reinstall it! Else you should delete manually all poll doctypes

then i remove
poll in sites/apps.txt

but i still find Poll in desktop

Repeating myself!

sorry to ask you again,
how and where to delete manually all poll doctypes?

Please do some instruction.

to delete
Poll Option
Poll Settings
Poll Vote


@Gavin_Ji :thumbsup: You can delete in console

bench console
for name in frappe.get_list("Doctype", filters={"module_def": "Poll"}):
    frappe.delete_doc("Doctype", name["name"])
frappe.delete_doc("Module Def", "Poll")

:warning: Do it with caution!

1 Like

i login with administrator and delete these four doctypes manually.

By the way, now i using bench update, found error: error: insufficient permission for adding an object to repository database
How to fix it and how to update

[root@123 ~]# bench update INFO:bench.utils:updating bench remote: Counting objects: 56, done. remote: Compressing objects: 100% (24/24), done. remote: Total 56 (delta 45), reused 43 (delta 32), pack-reused 0 error: insufficient permission for adding an object to repository database .git/objects fatal: failed to write object fatal: unpack-objects failed Traceback (most recent call last): File "/usr/bin/bench", line 9, in <module> load_entry_point('bench==0.1', 'console_scripts', 'bench')() File "/home/frappe/bench-repo/bench/", line 40, in cli bench_command() File "/usr/lib/python2.7/site-packages/click/", line 664, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python2.7/site-packages/click/", line 644, in main rv = self.invoke(ctx) File "/usr/lib/python2.7/site-packages/click/", line 991, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python2.7/site-packages/click/", line 837, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python2.7/site-packages/click/", line 464, in invoke return callback(*args, **kwargs) File "/home/frappe/bench-repo/bench/commands/", line 34, in update update_bench() File "/home/frappe/bench-repo/bench/", line 194, in update_bench exec_cmd("git pull", cwd=cwd) File "/home/frappe/bench-repo/bench/", line 100, in exec_cmd raise CommandFailedError(cmd) bench.utils.CommandFailedError: git pull

I was trying to get the poll to work. documentation is minimal. I setup a poll but can’t seem to see it on the site. wha am I missing here? I click on “see on website” and it says page missing. It points to http://sitename/undefined

Is there something extra to do?

Thanks for reporting this - so you installed this? GitHub - frappe/poll: Online Polling App

That code repos has been dormant for 4 years.

“I click on “see on website” and it says page missing. It points to http://sitename/undefined

Please post a screenshot or error traceback, what is the url path context to the page resource?

Possibly a permission issue - login as Adminstrator may make a difference?

1 Like

Thanks for replying Clarke. I and the community definitely appreciate your support on keeping us Frapped. lol. Quick question. Is there any comprehensive book on this awesome language. I assume a steep learning curve but not having any published book creates a huge barrier for newbies for modification.

Thanks Clarkej.

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 39, in render
data = render_page_by_language(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 133, in render_page_by_language
return render_page(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 149, in render_page
return build(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 156, in build
return build_page(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/”, line 179, in build_page
if ’

’ in html:
UnboundLocalError: local variable ‘html’ referenced before assignment

Not that I am aware. ERPNext’s rapid steady growth means that, as a community-driven open source offering, formal or comprehensive documentation may never come to light. Nonetheless basic docs, videos and other aids do indeed exist for those prepared to learn. And appreciate too this forum and the web form an excellent basis for finding answers to when you are stuck.