Delete the useless resource and activity