Delete Uploaded Data

Deletes uploaded data safely. Also, removes the corresponding firebase entry, if any.

Name Description Notes
URL /api/uploads/<sid> <sid> represents the session ID
Method Delete

Responses

Code Reason
200 Successful in deleting all data
400 Invalid sid (session ID)
403 Session folder not found
$.ajax({
    url: "/api/uploads/_432nevsr3",
    type: "DELETE"
})
.done(function(resp) {
    window.location.href = "/";
});

results matching ""

    No results matching ""