Renamed delete to remove to avoid conflict with built in function.