2

How do I delete a column in Parse using Swift? I am new to Parse. I have looked at the Parse documentation, but could not figure it. After trying many variations of the docs in my code nothing has worked. If it is not possible to delete a column, then how do I delete a row.

3
  • 2
    This doesn't do what you think it does. It'll delete the new instance of the "QuestionsAndAnswers" PFObject that you've just created (and it won't even do that really, because you haven't saved it to the server), not the whole class. I don't believe you can remove the whole class via the API, you can only remove objects/instances of the class. Commented Jun 1, 2015 at 1:13
  • 1
    The best you can do in the API is to delete all rows using delete all, as parse API does not support drop classes from the API only from the webpage Commented Jun 1, 2015 at 1:26
  • If you want to delete a class permanently, the option is available on the Parse website. Commented Jun 1, 2015 at 2:50

1 Answer 1

1

In your example code, QuestionsandAnswers is an object, not a class.

If you really intend to delete a class, that is now possible with the Schema API that the Parse team just released: http://blog.parse.com/announcements/releasing-the-schema-api/

Here is the specific documentation for removing a class which you can do with cURL or Python: https://parse.com/docs/rest/guide#schemas

Good luck (and be careful). :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.