fix delete resource method
fix delete resource method