Browse files

updated delete function

  • Loading branch information...
1 parent 611af01 commit 8a3fe3833c4875dd81493385f538b92368bd96d2 @Leveton committed Jun 28, 2012
Showing with 1 addition and 12 deletions.
  1. +1 −12 lib/Parse.js
View
13 lib/Parse.js
@@ -79,20 +79,9 @@ Parse.prototype = {
data = { email: data }
parseRequest.call(this, 'POST', '/1/requestPasswordReset/', data, callback)
},
-
- // This hack replaces the username so that it doesn't show up in collections by user-predicate. Be sure to substitute 'user' with your key
- destroyFilesByUser: function (objectId, className, data, callback) {
- data = { user: data }
- parseRequest.call(this, 'PUT', '/1/classes/' + className + '/' + objectId, data, callback)
- },
-
- // delete a file. Note: file still shows up on the parse databrowser, but attempting to access it will result in a 401
- deleteFile: function (fileName, callback) {
- parseRequest.call(this, 'DELETE', '/1/files/' + fileName, null, callback)
- },
// remove an object from the class store
- 'delete': function (className, objectId, callback) {
+ delete: function (className, objectId, callback) {
parseRequest.call(this, 'DELETE', '/1/classes/' + className + '/' + objectId, null, callback);
}
};

0 comments on commit 8a3fe38

Please sign in to comment.