none
Unable to delete a task on Microsoft Project Server 2016 through REST API

    Question

  • I have an instance of MS Project Server version 16.0.4327 and I am trying to use the REST API to delete tasks because the SOAP API is unavailable on this version.

    What I'm doing is:

    1.  Check-out the project
    2.  Send a delete task request
    3.  Wait for an empty queue
    4.  Publish the changes
    5.  Check-in the project

    The problem is that all of the delete task API calls don't seem to do anything even though they return HTTP 200 OK. I tried to use the /task('taskId')/deleteObject() call described here: https://msdn.microsoft.com/en-us/library/office/jj668556.aspx

    and I tried to send a POST request with "DELETE" in the X-HTTP-HEADER to this url 

    /ProjectServer/Projects('projectid')/Draft/Tasks('taskid')

    as described here: https://msdn.microsoft.com/en-us/library/office/jj669340.aspx

    But both of these operations don't delete the given task and they don't put any actions into the job queue

    Please let me know if I'm sending these requests incorrectly.

    Monday, March 20, 2017 5:14 PM