Skip to main content

How to Delete Trades in TradeLyser

TradeLyser builds your trades from broker orders, so there is no delete button on a single completed trade. What you can delete is an open position, from the panel you use to close it, or every trade on an account at once with Clear Trades, and then re-import clean data. This page explains both, and how to fix a wrong trade without deleting anything.

Use this page to:

  • Remove a stray or duplicate open position.
  • Start an account again after a bad CSV import.
  • Decide whether you need to delete at all, or just correct fees, tags or the exit.

What you need​

RequirementDetails
For an open positionAny plan. The position opens from Open Positions.
For Clear TradesPro plan. Run from the account's ⋯ actions menu on the Accounts page.
A backupDownload CSV in the Trades Log exports the completed trades for the selected account and date range.
Both kinds of deletion are permanent

Delete Position removes the position immediately, without a confirmation step. Clear Trades permanently deletes all trades, positions, journals and orders for the account. Neither can be undone, and there is no recycle bin.

What you can and can't delete​

ItemCan you delete it?How
An open positionYesDelete Position in the Close Position Manually panel
A single completed tradeNoFix the source data instead (see below)
All trades on one accountYes, on ProClear Trades in the account's ⋯ actions menu
The whole accountOnly once it has no tradesDelete Account in the account's ⋯ actions menu

Step 1: Export a backup​

  1. Open Trades Log.
  2. Select the account in the header and set the Dashboard date range to cover the trades you care about.
  3. Click the Download CSV icon above the table.

Keep the file until you have confirmed the clean-up worked.

Step 2: Delete an open position​

Use this for a position that shouldn't exist, for example a duplicate created by a manual entry.

  1. Open Open Positions and click the position. Its Trade Details page opens.
  2. Click Close Position Manually. A side panel opens.
  3. Click Delete Position. The position is deleted straight away and a Position Deleted message appears.

If the position is real and you simply closed it outside TradeLyser, close it instead with an exit price so the trade is kept. See Close an open position.

Step 3: Clear all trades on an account (Pro)​

Use this when an import went wrong and the simplest fix is to start the account again.

  1. Open the Accounts page.
  2. Open the account's ⋯ actions menu and choose Clear Trades.
  3. Type CLEAR to confirm.
  4. All trades, open positions, journal days and orders for that account are deleted. The account itself and its settings stay.
  5. Re-import correct data with Import Trade or Import Template, or sync again. Note that Sync Trades fetches only today's orders, and Sync History works only for Dhan, ICICI and Upstox.

Fix a wrong trade without deleting it​

Most problems that make people want to delete a trade have a better fix:

ProblemFix
Fees or taxes are wrongCheck Set Fees & Tax on the account. See Configure fees and tax.
P&L doesn't match your brokerCheck the account's calculation method. It can't be changed, so add a new account with the method you want. See Incorrect P&L.
A trade is still open because the exit is missingSync again, or use Close Position Manually with the exit price.
Wrong tags, rating or strategyChange them on Trade Details. See Edit a trade.
A whole import was wrongClear Trades (Pro), then import a corrected file.

Troubleshooting​

ProblemFix
There is no delete option on a tradeExpected. Single completed trades can't be deleted. Use the fixes above.
Clear Trades isn't in the menuIt needs the Pro plan.
Delete Account says Cannot delete accountThe account still has trades. Archive it instead (Pro), or clear its trades first.
I deleted something by mistakeDeletion can't be undone. Re-import the trades from your broker file or backup CSV.

Frequently asked questions​

Can I delete a single trade in TradeLyser?​

Not a completed trade. You can delete an open position, or clear every trade on an account (Pro) and re-import.

Can I recover deleted trades?​

No. There is no recycle bin. Re-import from your broker's file or the CSV you downloaded from the Trades Log.

Can I delete an account that has trades?​

No. Delete Account shows Cannot delete account while trades are assigned to it and suggests archiving instead. Archive Account (Pro) hides an account you no longer use. To delete it completely, clear its trades first.

How do I remove duplicate trades after an import?​

Clear the account's trades (Pro) and import one clean file, or check Missing trades and CSV import errors for the cause.