backbone-dynamodb.js
function deleteItem(model, options) {
	var request,
		deferred = new _.Deferred(),
		params = {
			Key: key.call( model ),
			TableName: model._tableName()
		};

	options || ( options = {} );
	wrapComplete( model, options );
	_.extend( params, options.dynamodb );

	if ( options.serializeDates !== false ) {
		// If the hash and/or range attributes are `Date` instance they must be serialized before sending the request.
		serializeAllDates( model, params.Key );
	}

	request = dynamo().deleteItem( params );

	request.on('complete', function (response) {
		var ctx = options.context || model;

		if ( response.error ) {
			deferred.rejectWith( ctx, [ response, options ] );
		} else {
			deferred.resolveWith( ctx, [ response, options ] );
		}
	});
	request.send();

	deferred.done( options.success ).fail( options.error ).always( options.complete );

	return deferred.promise( request );
}
function deleteItem(model, options) {
	var request,
		deferred = new _.Deferred(),
		params = {
			Key: key.call( model ),
			TableName: model._tableName()
		};

	options || ( options = {} );
	wrapComplete( model, options );
	_.extend( params, options.dynamodb );

	if ( options.serializeDates !== false ) {
		// If the hash and/or range attributes are `Date` instance they must be serialized before sending the request.
		serializeAllDates( model, params.Key );
	}

	request = dynamo().deleteItem( params );

	request.on('complete', function (response) {
		var ctx = options.context || model;

		if ( response.error ) {
			deferred.rejectWith( ctx, [ response, options ] );
		} else {
			deferred.resolveWith( ctx, [ response, options ] );
		}
	});
	request.send();

	deferred.done( options.success ).fail( options.error ).always( options.complete );

	return deferred.promise( request );
}
function deleteItem ( model , options ) { var request , deferred = new _ . Deferred ( ) , params = { Key : key . call ( model ) , TableName : model . _tableName ( ) } ; options || ( options = { } ) ; wrapComplete ( model , options ) ; _ . extend ( params , options . dynamodb ) ; if ( options . serializeDates !== false ) { // If the hash and/or range attributes are `Date` instance they must be serialized before sending the request. serializeAllDates ( model , params . Key ) ; } request = dynamo ( ) . deleteItem ( params ) ; request . on ( 'complete' , function ( response ) { var ctx = options . context || model ; if ( response . error ) { deferred . rejectWith ( ctx , [ response , options ] ) ; } else { deferred . resolveWith ( ctx , [ response , options ] ) ; } } ) ; request . send ( ) ; deferred . done ( options . success ) . fail ( options . error ) . always ( options . complete ) ; return deferred . promise ( request ) ; }
Deletes a Backbone.DynamoDB.Model from a DynamoDB table using a DeleteItem request.

@param {Backbone.DynamoDB.Model} model The model to delete from DynamoDB.
@param {Object} options The options object.
Deletes a Backbone . DynamoDB . Model from a DynamoDB table using a DeleteItem request .