We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

How to delete all row in a input file

Anjankumar2021
8 - Asteroid

Hi Team, need to delete all rows in input file except headers. Pls assist.

 

Anjankumar2021_0-1676749895814.png

 

5 REPLIES 5
Anjankumar2021
8 - Asteroid

How to delete all rows and unwanted columns in my input file

binuacs
21 - Polaris

@Anjankumar2021 to delete all the data from your input file you can use the MultiField tool and replace with Null()

 

binuacs_0-1676755826738.png

 

RobertOdera
13 - Pulsar

Hi, @Anjankumar2021 

 

To clarify, you want to delete all rows = only headers, correct?

For that, consider using the Select Records tool.

 

Making the field values of the columns Null() or Blank will not remove the rows, as info.

 

Please mark it as an acceptable solution if it works for you - cheers!

 

RobertOdera_0-1676768534067.png 

RobertOdera_1-1676768776980.png

 

 

apathetichell
20 - Arcturus

I'm might be reading this wrong - but you want this in your actual input file? like you want to read in the headers and then overwrite the file? That is what you are asking about so I just want to be clear:

 

Input data tool - input your full path. click the box that says "first row contains data". Hook up an output data tool. Click on the bottom section to overwrite sheet or range. Unclick the "include filename in output" box - and swap this to full path to your filename field. Make sure you are configured to overwrite sheet or range - and make sure you are configured to skip your field headers. You now have a blank excel sheet except your headers - which is what you asked for.

RobertOdera
13 - Pulsar

You're most welcome @Anjankumar2021 

Please let the community know if you need anything else - Cheers!

Labels
Top Solution Authors