Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

how to delete multiple items, which have no transactions

(0) ShareShare
ReportReport
Posted on by

What's best to way delete the multiple items? I have used Excel to upload the data but it looks like that the items need to be done again. There are no transactions added to any item. I can remove the items one by one but need a way to remove them in bulk to save time.

Thanks in advance for your help!

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,011 Moderator on at
    RE: how to delete multiple items, which have no transactions

    By using the show more options in the item list, you can chose select more. Mark all items you want to delete and then delete them in bulk.

    Definitely the simplest way.

    pastedimage1659655682562v2.png

  • Suggested answer
    divyeshchitte Profile Picture
    950 on at
    RE: how to delete multiple items, which have no transactions

    You have to add Code to delete Multiple Item base on condition

    Below is the code, you can add some more filters based upon your conditions

    CLEAR(Item);

    Item.RESET();

    Item.SETRANGE(Inventory,0);

    IF Item.FINDSET THEN BEGIN

     ItemLedgerEntry.RESET();

     ItemLedgerEntry.SETRANGE(ItemLedgerEntry."Item No.",Item."No.");

     IF NOT ItemLedgerEntry.FINDFIRST THEN

       Item.DELETE(TRUE);

    END;

    Name DataType Subtype Length

    Item Record Item

    ItemLedgerEntry Record Item Ledger Entry

  • Suggested answer
    YUN ZHU Profile Picture
    81,217 Super User 2025 Season 1 on at
    RE: how to delete multiple items, which have no transactions

    As far as I know it is not possible to delete part of the data using Edit in Excel and Configuration Package, this may need to be customized.
    Hope other experts can give you better advice.

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    21,544 Moderator on at
    RE: how to delete multiple items, which have no transactions

    Hi,

    Please use the Configuration Package functionality to define the table ID 27 and then delete them, please follow the below link

    community.dynamics.com/.../price-list-sales

  • Suggested answer
    MahGah Profile Picture
    15,437 on at
    RE: how to delete multiple items, which have no transactions

    Hi

    Please see this article that describe all possible method (without development) 

    navinsights.net/.../

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,017 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,852 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans