Open topic with navigation

# 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:12000?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.

TIP:

Typically, Micro Focus recommends that you send `ManageResources` as a POST request. For testing, you can use a GET request, in which case you must base64 encode the JSON data.

© 2015-2018 Micro Focus or one of its affiliates | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm