{ "id": "137628", "key": "TIMOB-17819", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2014-10-03T05:41:03.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "parity" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:11.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "Currently using Cloud REST API, you need to call the \"delete\" function on the cloud object.\r\n\r\nEx\r\n{code}\r\ncurl -b cookies.txt -c cookies.txt -X DELETE \"https://api.cloud.appcelerator.com/v1/objects/car/delete.json?key=&pretty_json=true&id=4ec42e91d9ca72c507000010\"\r\n{code}\r\n\r\nHowever on the `ti.cloud` module for Titanium, the function on the ACS object is titled `remove`.\r\n\r\nEx. \r\n{code}\r\nCloud.Objects.remove({\r\n classname: 'cars',\r\n id: savedCar1.id\r\n}, function (e) {\r\n if (e.success) {\r\n alert('Success');\r\n } else {\r\n alert('Error:\\n' +\r\n ((e.error && e.message) || JSON.stringify(e)));\r\n }\r\n});\r\n{code}\r\n\r\nIt would cause less confusion, if the `ti.cloud` module function on ACS Objects to delete the object was entitled `delete` to create better parity with the Cloud documentation and REST API.", "attachment": [], "flagged": false, "summary": "ti.cloud module -> ACS function to delete objects should align with Cloud REST API", "creator": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }