How to remove the last conv2d block of vgg16 or other pretrained models

hi, i want to remove the last conv2d block of pretrained models and fine tune it . can you please help me…