modify delete tenant data function