delete all data function