Diff margin resource cleanup