How to delete forms?

This seems to be an odd question, I have not found anything in the docs (maybe it is too obvious?).

How can one delete a form, and make it no longer available in the CHT app, using the command line?

There might be other ways to do it, but I use the delete-forms action in cht-conf.

So, to delete a form on my local development instance I run: cht --local delete-forms -- *my_form_name*

There is also a delete-all-forms action if you want to just clear everything out and start over…

A post was split to a new topic: How to delete users in CHT

Thank you very much @jkuester
I could have found that by looking into the cht help menu.
Sorry for that!

1 Like

A post was split to a new topic: Does deleting a form affect existing data?

I’ve been looking for delete_all_forms but it’s delete-all-forms, :slight_smile:

1 Like

Whoops! Thanks for calling this out! I have edited my original comment so hopefully no one else is confused by this in the future!

1 Like

hello @jkuester @diana

am kind of facing a similar issue with the children nutrition screen form under the Actions tab

i dont have the form under the apps forms or in the tasks configuration but for some reason it keeps popping up whenever a new person in enrolled in the system

Hi @cliff

Have you deleted and reuploaded all forms?

thanks @diana . i have done that and works fine now :100: