Macro to remove revision table in Pdm

I Need a macro that automatically open solidworks drawing file in pdm,Check out the file and remove revision table and annotation from drawing file and automatically checK-in in pdm

Solidworks3d Contentcentral