Catalysis of the hydrolysis of an isopeptide bond between a small protein such as ubiquitin or a ubiquitin-like protein (e.g. APG8, ISG15, NEDD8, SUMO) and a protein to which the small protein has been conjugated.