Delete a Question or Question Equivalence Class

You can use the ManageResources action to delete a question or a question equivalence class.

After you delete an item, there is a short period in which you can undelete it, before it is permanently deleted from the system. See Undelete a Question or Question Equivalence Class.

To delete a question or question equivalence class, you use a ManageResources action in a POST request method, with the information about the item that you want to delete provided in the Data parameter as a JSON object.

You must include the ID of the item that you want to delete, and set the type of the operation to question or question_equivalence_class, as appropriate.

NOTE:

You cannot delete a question that has the state answered (that is, a question that belongs to a question equivalence class). You must remove it from the question equivalence class before you delete it. See Update the Question State and Update a Question Equivalence Class.

You can retrieve the ID of the question or question equivalence class by sending a GetResources action. For example:

http://localhost:7000?Action=GetResources&SystemName=Answerbank&Type=question_equivalence_class

The following example deletes a question equivalence class.

Action=ManageResource&SystemName=AnswerBank
data={
   "operation":"delete",
   "type":"question_equivalence_class",
   "ids": [ 
      2012912839742797651 
   ]
}

You can retrieve the full schema for the JSON object to use by using the GetResources action. See Find the JSON Schema for Your Update.

NOTE:

The ManageResources action fails if you attempt to use request JSON that contains properties that are not contained in the appropriate schema.


_HP_HTML5_bannerTitle.htm