Changed function call from delete to remove