endpoint for deleting old data