# Delete draft, user made a draft poll with a million options

**URL:** https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868
**Category:** Support
**Created:** [March 28, 2019, 10:08pm UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868 "2019-03-28T22:08:02Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Rojoss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rojoss/32/121293_2.png) [@Rojoss](https://meta.discourse.org/u/Rojoss)
#### Post date: [March 28, 2019, 10:08pm UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868/1 "2019-03-28T22:08:02Z")

</div>

Hi there, one our users was so stupid to create a poll with like a million options.  
This caused the page to crash and now every time the user goes on the site and opens the draft it crashes again.  
So my question is if there is any way to delete the draft, or are there any other solutions?

I tried impersonating the user but I get the same issue and I don’t really see an obvious way to delete it.

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [March 28, 2019, 10:15pm UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868/2 "2019-03-28T22:15:20Z")

</div>

If you visit

`your.site.com/my/activity/drafts`

You should see an option to remove the problematic draft

 ![draft](https://global.discourse-cdn.com/meta/original/3X/3/9/3937c878a85304972a1f2e7fa8d1e8d0a0596e1b.png)

---

<div class="post-metadata">

### Author: ![Rojoss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rojoss/32/121293_2.png) [@Rojoss](https://meta.discourse.org/u/Rojoss)
#### Post date: [March 28, 2019, 10:17pm UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868/3 "2019-03-28T22:17:46Z")

</div>

> [@Johani](#):
>
> /my/activity/drafts

Thnx, but this also crashes the page because the draft gets loaded for preview 😅

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/2/e2e3debd9747876d33f4e65599e999ffcb32abf2.png)

---

<div class="post-metadata">

### Author: ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)
#### Post date: [March 29, 2019, 1:44am UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868/4 "2019-03-29T01:44:05Z")

</div>

I’ve tried to repro this on my developmental server and followed the steps, it worked smoothly without any errors. I think there’s a way to do this on the console. 🤷‍♂️

---

<div class="post-metadata">

### Author: ![Rojoss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rojoss/32/121293_2.png) [@Rojoss](https://meta.discourse.org/u/Rojoss)
#### Post date: [March 29, 2019, 8:51am UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868/5 "2019-03-29T08:51:49Z")

</div>

> [@Chaboi\_3000](#):
>
> I think there’s a way to do this on the console.

Yeah probably, but not really sure how.  
Hopefully one of the devs can point me where to look or what to look for.

> [@Chaboi\_3000](#):
>
> it worked smoothly without any errors

Hmm strange, what version are you on?  
I’m on the latest currently which is 2.3.0.beta6

---

<div class="post-metadata">

### Author: ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)
#### Post date: [March 29, 2019, 9:58am UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868/6 "2019-03-29T09:58:35Z")

</div>

I finally repro’d this issue. I can fix this issue by clicking new topic/new PM, and clicking abandon previous draft.

---

<div class="post-metadata">

### Author: ![Rojoss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rojoss/32/121293_2.png) [@Rojoss](https://meta.discourse.org/u/Rojoss)
#### Post date: [March 29, 2019, 9:59am UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868/7 "2019-03-29T09:59:51Z")

</div>

Awesome, where do you click the new topic though?  
I only get a button to open draft. 🤔

---

<div class="post-metadata">

### Author: ![Rojoss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rojoss/32/121293_2.png) [@Rojoss](https://meta.discourse.org/u/Rojoss)
#### Post date: [March 29, 2019, 10:05am UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868/9 "2019-03-29T10:05:31Z")

</div>

I can not abandon draft from there.

Here some screenshots what I see:

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/f/5f898ac6313bbc72c169c860a76c1c87f92437f7.jpeg)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/3/2/324eb5132eac887339d53b099a171651a22fa136.jpeg)

---

<div class="post-metadata">

### Author: ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)
#### Post date: [March 29, 2019, 10:08am UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868/10 "2019-03-29T10:08:31Z")

</div>

Ahh. It seems like PM in this situation works, but not topics.

---

<div class="post-metadata">

### Author: ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)
#### Post date: [March 29, 2019, 10:09am UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868/11 "2019-03-29T10:09:13Z")

</div>

In this situation a command in the console should do.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [March 29, 2019, 1:54pm UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868/12 "2019-03-29T13:54:46Z")

</div>

You can find the draft in the rails console by searching the drafts using the user id:

```plaintext
pry(main)> Draft.where(user_id: USER_ID)

```

Then once you find the right draft, you can delete it via

```plaintext
pry(main)> Draft.find(DRAFT_ID).destroy

```

---

<div class="post-metadata">

### Author: ![Rojoss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rojoss/32/121293_2.png) [@Rojoss](https://meta.discourse.org/u/Rojoss)
#### Post date: [March 30, 2019, 3:51pm UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868/13 "2019-03-30T15:51:19Z")

</div>

Awesome thanks! ❤

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 29, 2019, 4:13pm UTC](https://meta.discourse.org/t/delete-draft-user-made-a-draft-poll-with-a-million-options/112868/15 "2019-04-29T16:13:45Z")

</div>

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