src/org/tiefaces/components/websheet/utility/CommandUtility.java
@SuppressWarnings({ "rawtypes" })
	private static void deleteObjectInContext(
			final Collection lastCollection, final EachCommand eachCommand,
			final int lastCollectionIndex,
			final Map<String, Object> dataContext) {
		if (!(lastCollection instanceof List)) {
			throw new EvaluationException(eachCommand.getVar()
					+ TieConstants.EACH_COMMAND_INVALID_MSG);
		}
		List collectionList = (List) lastCollection;
		// the object must support empty constructor.

		collectionList.remove(lastCollectionIndex);
		dataContext.remove(eachCommand.getVar());

	}
@SuppressWarnings({ "rawtypes" })
	private static void deleteObjectInContext(
			final Collection lastCollection, final EachCommand eachCommand,
			final int lastCollectionIndex,
			final Map<String, Object> dataContext) {
		if (!(lastCollection instanceof List)) {
			throw new EvaluationException(eachCommand.getVar()
					+ TieConstants.EACH_COMMAND_INVALID_MSG);
		}
		List collectionList = (List) lastCollection;
		// the object must support empty constructor.

		collectionList.remove(lastCollectionIndex);
		dataContext.remove(eachCommand.getVar());

	}
@ SuppressWarnings ( { "rawtypes" } ) private static void deleteObjectInContext ( final Collection lastCollection , final EachCommand eachCommand , final int lastCollectionIndex , final Map < String , Object > dataContext ) { if ( ! ( lastCollection instanceof List ) ) { throw new EvaluationException ( eachCommand . getVar ( ) + TieConstants . EACH_COMMAND_INVALID_MSG ) ; } List collectionList = ( List ) lastCollection ; // the object must support empty constructor.
 collectionList . remove ( lastCollectionIndex ) ; dataContext . remove ( eachCommand . getVar ( ) ) ; }
Delete object in context.

@param lastCollection
the last collection
@param eachCommand
the each command
@param lastCollectionIndex
the last collection index
@param dataContext
the data context
Delete object in context .