Last active
December 1, 2022 14:28
SF_14.0, SF_14.1, SF_14.2, SF_14.3 - https://www.progress.com/documentation/sitefinity-cms/work-with-content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function deleteNewsItem(sitefinity, id) { | |
var dataOptions = { | |
urlName: "newsitems", | |
providerName: "OpenAccessDataProvider", | |
cultureName: "en" | |
} | |
var data = sitefinity.data(dataOptions); | |
data.destroy({ | |
key: id, | |
successCb: function (data) { | |
// data is empty - 204 http status | |
console.log(data); | |
}, | |
failureCb: function (data) { | |
console.log(data); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment