Problem deleting a redundant form from ENKETO's 'currently launched' list

Hi there,

I am using ODK aggregate server and Enketo smart paper.

I am trying to launch a new form with Enketo smart paper...but am told that
I have exceeded my quota. It lists a number of forms that I have deleted

The webpage then advices Only forms that are no longer present on the
forms server can be deleted. Use the API
http://apidocs.enketo.org/#/delete-survey to do this.

I follow the link and am told to run the following command in the
terminal:

curl -X DELETE --user abc: -d
"server_url=https://testserver.com/bob&form_id=widgets"
https://enketo.org/api_v1/survey

So this is what I enter:
curl -X DELETE --user rstedham: -d
"server_url=https://aces-2014.appspot.com"
https://accounts.enketo.org/account/sample

I receive the response: Redirecting to
/login/?returnUrl=%252Faccount%252Fsamplec016021

And the redundant forms remain in 'launched forms'

Can anyone advice me what I am doing wrong?

Thanks

··· from my server.

Hi,

The API docs http://apidocs.enketo.org/ will generate the curl snippet
automatically for you when you enter the 3 values in the green input boxes.

Your snippet contains a few errors (API token not used, contains no form_id
and is not sent to the correct API address)

You should get an empty (204) response the first time you run the command.
Any subsequent commands will return a 404 (not found) response, which means
the form is de-activated.

Cheers,
Martijn

··· On Wednesday, July 16, 2014 5:19:37 AM UTC-6, rlst...@gmail.com wrote: > > Hi there, > > I am using ODK aggregate server and Enketo smart paper. > > I am trying to launch a new form with Enketo smart paper...but am told > that I have exceeded my quota. It lists a number of forms that I have > deleted from my server. > > The webpage then advices *Only forms that are no longer present on the > forms server can be deleted. Use the API > to do this.* > > *I follow the link and am told to run the following command in the > terminal:* > > curl -X DELETE --user abc: -d "server_url= > https://testserver.com/bob&form_id=widgets" > https://enketo.org/api_v1/survey > > *So this is what I enter:* > curl -X DELETE --user rstedham: -d "server_url= > https://aces-2014.appspot.com" https://accounts.enketo.org/account/sample > > *I receive the response:* Redirecting to > /login/?returnUrl=%252Faccount%252Fsamplec016021 > > And the redundant forms remain in 'launched forms' > > Can anyone advice me what I am doing wrong? > > Thanks >

Martijn, Thank you for the adivce - I have been abroad and so have only
just got around to trying it out.

I have filled in the relevant boxes as you suggest....to automate the
script:

curl -X DELETE --user c2nk56m1ocxtuik9: -d "server_url=
https://aces-2014.appspot.com&form_id=aces" https://enketo.org/api_v1/survey

...but it does not get rid of the surveys. Is there something obvious I
have done wrong.

If you have a moment to advise me then great! But thank you anyway for your
earlier response

Becky

··· On Wed, Jul 16, 2014 at 2:08 PM, Martijn van de Rijdt wrote:

Hi,

The API docs http://apidocs.enketo.org/ will generate the curl snippet
automatically for you when you enter the 3 values in the green input boxes.

Your snippet contains a few errors (API token not used, contains no
form_id and is not sent to the correct API address)

You should get an empty (204) response the first time you run the command.
Any subsequent commands will return a 404 (not found) response, which means
the form is de-activated.

Cheers,
Martijn

On Wednesday, July 16, 2014 5:19:37 AM UTC-6, rlst...@gmail.com wrote:

Hi there,

I am using ODK aggregate server and Enketo smart paper.

I am trying to launch a new form with Enketo smart paper...but am told
that I have exceeded my quota. It lists a number of forms that I have
deleted from my server.

The webpage then advices Only forms that are no longer present on the
forms server can be deleted. Use the API
http://apidocs.enketo.org/#/delete-survey to do this.

I follow the link and am told to run the following command in the
terminal:

curl -X DELETE --user abc: -d "server_url=https://
testserver.com/bob&form_id=widgets" https://enketo.org/api_v1/survey

So this is what I enter:
curl -X DELETE --user rstedham: -d "server_url=https://aces-2014.
appspot.com" https://accounts.enketo.org/account/sample

I receive the response: Redirecting to /login/?returnUrl=%
252Faccount%252Fsamplec016021

And the redundant forms remain in 'launched forms'

Can anyone advice me what I am doing wrong?

Thanks

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/SOiuXfh0Cls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Rebecca,

This is somewhat mysterious as your snippet is 100% correct now and for me
returns the expected response (the form is now de-activated).

What is the response you see when you enter this in the terminal? Is the
curl command available on your machine? If not, you'll have to install it.
If curl is available, you can enter the flag: -v to get a more verbose
response.

Sorry, after publishing the nice API documentation, I had hoped some clever
developer would just add this API call to Aggregate, to be automatically
called whenever a form is deleted. It hasn't happened yet. (if somebody
wants to take this on, I'd welcome this and can give all the technical
support needed).

You could also consider upgrading your account to raise your quota and as
an added benefit become a much appreciated Enketo supporter.

Cheers,
Martijn

··· On Tue, Aug 5, 2014 at 9:18 AM, Rebecca Stedham wrote:

Martijn, Thank you for the adivce - I have been abroad and so have only
just got around to trying it out.

I have filled in the relevant boxes as you suggest....to automate the
script:

curl -X DELETE --user c2nk56m1ocxtuik9: -d "server_url=
https://aces-2014.appspot.com&form_id=aces"
https://enketo.org/api_v1/survey

...but it does not get rid of the surveys. Is there something obvious I
have done wrong.

If you have a moment to advise me then great! But thank you anyway for
your earlier response

Becky

On Wed, Jul 16, 2014 at 2:08 PM, Martijn van de Rijdt martijn@enketo.org wrote:

Hi,

The API docs http://apidocs.enketo.org/ will generate the curl snippet
automatically for you when you enter the 3 values in the green input boxes.

Your snippet contains a few errors (API token not used, contains no
form_id and is not sent to the correct API address)

You should get an empty (204) response the first time you run the
command. Any subsequent commands will return a 404 (not found) response,
which means the form is de-activated.

Cheers,
Martijn

On Wednesday, July 16, 2014 5:19:37 AM UTC-6, rlst...@gmail.com wrote:

Hi there,

I am using ODK aggregate server and Enketo smart paper.

I am trying to launch a new form with Enketo smart paper...but am told
that I have exceeded my quota. It lists a number of forms that I have
deleted from my server.

The webpage then advices Only forms that are no longer present on the
forms server can be deleted. Use the API
http://apidocs.enketo.org/#/delete-survey to do this.

I follow the link and am told to run the following command in the
terminal:

curl -X DELETE --user abc: -d "server_url=https://
testserver.com/bob&form_id=widgets" https://enketo.org/api_v1/survey

So this is what I enter:
curl -X DELETE --user rstedham: -d "server_url=https://aces-2014.
appspot.com" https://accounts.enketo.org/account/sample

I receive the response: Redirecting to /login/?returnUrl=%
252Faccount%252Fsamplec016021

And the redundant forms remain in 'launched forms'

Can anyone advice me what I am doing wrong?

Thanks

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/SOiuXfh0Cls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/SOiuXfh0Cls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Did you know that Enketo Smart Paper has now become the #1 tool for data
collection? Don't fall behind. Use it!

Enketo https://enketo.org | LinkedIn
http://www.linkedin.com/company/enketo-llc | GitHub
https://github.com/MartijnR | Twitter https://twitter.com/enketo

curl: (6) Could not resolve host: DELETE
curl: (1) Protocol https not supported or disabled in libcurl

...I only actually need one form on Enketo (the rest I was practising - and
I still need to remove the other 3) ...working for a development project
which has limited funds....but I will look into upgrading if for nothing
else - to support. :slight_smile:

...so something to do with my curl setup?

··· On Tue, Aug 5, 2014 at 4:58 PM, Martijn van de Rijdt wrote:

Hi Rebecca,

This is somewhat mysterious as your snippet is 100% correct now and for me
returns the expected response (the form is now de-activated).

What is the response you see when you enter this in the terminal? Is the
curl command available on your machine? If not, you'll have to install it.
If curl is available, you can enter the flag: -v to get a more verbose
response.

Sorry, after publishing the nice API documentation, I had hoped some
clever developer would just add this API call to Aggregate, to be
automatically called whenever a form is deleted. It hasn't happened yet.
(if somebody wants to take this on, I'd welcome this and can give all the
technical support needed).

You could also consider upgrading your account to raise your quota and as
an added benefit become a much appreciated Enketo supporter.

Cheers,
Martijn

On Tue, Aug 5, 2014 at 9:18 AM, Rebecca Stedham rlstedham@gmail.com wrote:

Martijn, Thank you for the adivce - I have been abroad and so have only
just got around to trying it out.

I have filled in the relevant boxes as you suggest....to automate the
script:

curl -X DELETE --user c2nk56m1ocxtuik9: -d "server_url=
https://aces-2014.appspot.com&form_id=aces"
https://enketo.org/api_v1/survey

...but it does not get rid of the surveys. Is there something obvious I
have done wrong.

If you have a moment to advise me then great! But thank you anyway for
your earlier response

Becky

On Wed, Jul 16, 2014 at 2:08 PM, Martijn van de Rijdt <martijn@enketo.org wrote:

Hi,

The API docs http://apidocs.enketo.org/ will generate the curl
snippet automatically for you when you enter the 3 values in the green
input boxes.

Your snippet contains a few errors (API token not used, contains no
form_id and is not sent to the correct API address)

You should get an empty (204) response the first time you run the
command. Any subsequent commands will return a 404 (not found) response,
which means the form is de-activated.

Cheers,
Martijn

On Wednesday, July 16, 2014 5:19:37 AM UTC-6, rlst...@gmail.com wrote:

Hi there,

I am using ODK aggregate server and Enketo smart paper.

I am trying to launch a new form with Enketo smart paper...but am told
that I have exceeded my quota. It lists a number of forms that I have
deleted from my server.

The webpage then advices Only forms that are no longer present on the
forms server can be deleted. Use the API
http://apidocs.enketo.org/#/delete-survey to do this.

I follow the link and am told to run the following command in the
terminal:

curl -X DELETE --user abc: -d "server_url=https://
testserver.com/bob&form_id=widgets" https://enketo.org/api_v1/survey

So this is what I enter:
curl -X DELETE --user rstedham: -d "server_url=https://aces-2014.
appspot.com" https://accounts.enketo.org/account/sample

I receive the response: Redirecting to /login/?returnUrl=%
252Faccount%252Fsamplec016021

And the redundant forms remain in 'launched forms'

Can anyone advice me what I am doing wrong?

Thanks

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/SOiuXfh0Cls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/SOiuXfh0Cls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Did you know that Enketo Smart Paper has now become the #1 tool for data
collection? Don't fall behind. Use it!

Enketo https://enketo.org | LinkedIn
http://www.linkedin.com/company/enketo-llc | GitHub
https://github.com/MartijnR | Twitter https://twitter.com/enketo

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/SOiuXfh0Cls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks,

Yes, something wrong with your curl installation. I found this:
http://curl.haxx.se/docs/faq.html#curl_1_SSL_is_disabled_https

Not sure if resolving the https issue would also resolve the issue with the
support of the custom headers (-X DELETE).

··· On Tue, Aug 5, 2014 at 10:02 AM, Rebecca Stedham wrote:

curl: (6) Could not resolve host: DELETE
curl: (1) Protocol https not supported or disabled in libcurl

...I only actually need one form on Enketo (the rest I was practising -
and I still need to remove the other 3) ...working for a development
project which has limited funds....but I will look into upgrading if for
nothing else - to support. :slight_smile:

...so something to do with my curl setup?

On Tue, Aug 5, 2014 at 4:58 PM, Martijn van de Rijdt martijn@enketo.org wrote:

Hi Rebecca,

This is somewhat mysterious as your snippet is 100% correct now and for
me returns the expected response (the form is now de-activated).

What is the response you see when you enter this in the terminal? Is the
curl command available on your machine? If not, you'll have to install it.
If curl is available, you can enter the flag: -v to get a more verbose
response.

Sorry, after publishing the nice API documentation, I had hoped some
clever developer would just add this API call to Aggregate, to be
automatically called whenever a form is deleted. It hasn't happened yet.
(if somebody wants to take this on, I'd welcome this and can give all the
technical support needed).

You could also consider upgrading your account to raise your quota and as
an added benefit become a much appreciated Enketo supporter.

Cheers,
Martijn

On Tue, Aug 5, 2014 at 9:18 AM, Rebecca Stedham rlstedham@gmail.com wrote:

Martijn, Thank you for the adivce - I have been abroad and so have only
just got around to trying it out.

I have filled in the relevant boxes as you suggest....to automate the
script:

curl -X DELETE --user c2nk56m1ocxtuik9: -d "server_url=
https://aces-2014.appspot.com&form_id=aces"
https://enketo.org/api_v1/survey

...but it does not get rid of the surveys. Is there something obvious I
have done wrong.

If you have a moment to advise me then great! But thank you anyway for
your earlier response

Becky

On Wed, Jul 16, 2014 at 2:08 PM, Martijn van de Rijdt < martijn@enketo.org> wrote:

Hi,

The API docs http://apidocs.enketo.org/ will generate the curl
snippet automatically for you when you enter the 3 values in the green
input boxes.

Your snippet contains a few errors (API token not used, contains no
form_id and is not sent to the correct API address)

You should get an empty (204) response the first time you run the
command. Any subsequent commands will return a 404 (not found) response,
which means the form is de-activated.

Cheers,
Martijn

On Wednesday, July 16, 2014 5:19:37 AM UTC-6, rlst...@gmail.com wrote:

Hi there,

I am using ODK aggregate server and Enketo smart paper.

I am trying to launch a new form with Enketo smart paper...but am told
that I have exceeded my quota. It lists a number of forms that I have
deleted from my server.

The webpage then advices Only forms that are no longer present on
the forms server can be deleted. Use the API
http://apidocs.enketo.org/#/delete-survey to do this.

I follow the link and am told to run the following command in the
terminal:

curl -X DELETE --user abc: -d "server_url=https://
testserver.com/bob&form_id=widgets" https://enketo.org/api_v1/survey

So this is what I enter:
curl -X DELETE --user rstedham: -d "server_url=https://aces-2014.
appspot.com" https://accounts.enketo.org/account/sample

I receive the response: Redirecting to /login/?returnUrl=%
252Faccount%252Fsamplec016021

And the redundant forms remain in 'launched forms'

Can anyone advice me what I am doing wrong?

Thanks

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/SOiuXfh0Cls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/SOiuXfh0Cls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Did you know that Enketo Smart Paper has now become the #1 tool for data
collection? Don't fall behind. Use it!

Enketo https://enketo.org | LinkedIn
http://www.linkedin.com/company/enketo-llc | GitHub
https://github.com/MartijnR | Twitter
https://twitter.com/enketo

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/SOiuXfh0Cls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/SOiuXfh0Cls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Did you know that Enketo Smart Paper has now become the #1 tool for data
collection? Don't fall behind. Use it!

Enketo https://enketo.org | LinkedIn
http://www.linkedin.com/company/enketo-llc | GitHub
https://github.com/MartijnR | Twitter https://twitter.com/enketo