delete get-data function