# Is it ok to delete homework questions to hide the evidence?

This was a perfectly good (possibly homework) question

The OP thanked me for my answer

Thanks, you just ended my frustration! – user3225065

and then deleted the question!

I don't think this type of behaviour adds value to the site.

Below is the original text of the question: (since it isn't visible to people with less than 10k reputation)

How do I make a while loop that will plot 12 evenly spaced spheres on a circle of radius 20x10^-10 in the y,z plane.

The actual question is as follows: -Use a while loop to consider N = 12 observation points that lie on a circle of radius 20 A in the y-z plane. One of the points should be on the +y axis. The program should determine the position of the remaining observation points, which are equally spaced around the circle.

-For each observation point, the program should calculate the electric eld and display an arrow to represent the eld. The tail of the arrow should be at the observation point, the length of the arrow should be proportional to the magnitude of the eld, and the direction of the arrow should indicate the direction of the eld. Adjust the scalefactor for the arrows to produce a reasonable graphic display.

``````******Code********
from __future__ import division, print_function
from visual import *

#Define constants
e = 1.6e-19
ke = 9e9
A2m = 1e-10
scalefactor = 1e-17

rsource=vector (0,0,0)
ion.q = -e

#initial values
theta=0
robs=vector(0,20*A2m,sin(theta))

#calculations

while theta <= 2*pi:
rate(5)
r = robs - rsource
rmag = mag(r)
rhat = norm(r)
Efield = (ke*ion.q*rhat)/(rmag**2)
Earrow= arrow(pos=robs, axis=Efield*scalefactor, color = color.orange)
theta = theta + (2*pi)/12
``````
• I've voted to undelete, but once it is open again it also needs a rollback to revision 2 – rene Jan 23 '14 at 10:23
• Relevant feature request to prevent immediate deletion of answered questions: Preventing misuse of question self-deletion – Richard Tingle Jan 23 '14 at 10:25
• @RichardTingle, thanks, I upvoted that one. I've seen it happen a few times in the past and something should really be done to prevent it – gnibbler Jan 23 '14 at 10:28
• 1. No, this is not ok. 2. You might be surprised how many times a day people flag questions that have upvoted and accepted answers for deletion. And they just shamelessly tell us "I don't want my boss/professor to see this"! `</rant>` – Bill the Lizard Jan 23 '14 at 13:05
• This isn't just homework questions. Every day, we get flags asking for deletion of questions because the asker posted their client's proprietary code and their manager caught them at it. I always respond that we're not going to delete questions with great answers, but they can try to anonymize the variables, function names, etc. You'd think people would check before they posted something publicly on one of the most popular sites on the Internet, but no they don't. – Brad Larson Jan 23 '14 at 16:19

No, that's not acceptable. The OP can delete questions if there are no answers or no upvoted answers, but since they've acknowledged that you've helped them, they shouldn't let the information go to waste. You deserve reputation by having the answer accepted, and the question may be helpful to future visitors too.

The OP may have the post disassociated from their account* if they strongly feel that it shouldn't be linked to their profile. They can flag the post and ask for a moderator to do that.

In your case you did the right thing by coming to Meta, where users with the necessary privileges can undelete the question.

* Remember that the license allows Stack Exchange to use the content you post in any way—you never have the right to completely remove it. That's why it can be anonymized.

• But I can understand what Op's feel when people keep down-voting on the question & unable to delete question when it has a good answer & upvoted. My question although it has good explanation I keep getting downvotes I can never able to delete my question as it has answer with a upvote :( – Rikesh Jan 23 '14 at 11:49
• I can understand that downvotes don't "feel nice" but they should prompt you to improve your question if possible, not delete it because you feel ashamed for it. It's utterly disrespectful for those who have invested the time to help you and answer your question. – slhck Jan 23 '14 at 12:06
• I have had questions down voted because people did not like me asking how to do something they disapprove off. Sometimes sorting out the design of a system is not an option, so you have to ask about implementing a bad design and therefore you get lots of down votes. – Ian Ringrose Jan 23 '14 at 12:39

Actions like this demonstrate that the OP sees Stack Overflow as his or her personal helpdesk. They are wrong. It is not.

They should be educated regarding this.

Actually, this needs to be clearer in general, on the site.

• That is too-common a misunderstanding, yes. You can also see it in people who ask for questions to be 'closed' once they get an answer, or who edit in an answer in their question with 'closed' or 'solved' in the title/body. – Andrew Barber Jan 29 '14 at 18:19