LPS-51305 pass resouceClassNameId when deleting

cc/ @adolfopa