CHANGE: deleteElement moved to internal server function