Action for reducing size of layer when using a clipping mask

I have a new Widows 11 computer and lost all my loaded actions in Photoshop. I had an action that was very helpful in reducing the size of a layer and of course the size of the final document. If a paper or photo was clipped to a layer, then you ran the action to greatly reduced the size of the file. I think it was one of Syndee Rogers classes; I have searched my computer, but honestly don’t know what the action was titled. Any help or suggestions greatly appreciated. Thank you. Irene