how to update tiled table mid game

hello,

i would like to know how to update a tiled layer mid game? i am trying to make a farm and make crops dissapear by drawing a dirt layer over the crops. any chance someone could write the code?