Use the resource context for clean.