# Soft or hard delete multiple custodian accounts `DeleteCustodianAccounts` `POST /api/transactionportfolios/{scope}/{code}/custodianaccounts/$delete` - [OpenAPI fragment](https://www.lusid.com/docs/api/lusid/endpoints/transaction-portfolios/DeleteCustodianAccounts.json) - [Rendered page](https://www.lusid.com/docs/api/lusid/endpoints/transaction-portfolios/DeleteCustodianAccounts) Delete one or more custodian accounts from the Transaction Portfolios. Soft deletion marks the custodian account as inactive While the Hard deletion is deleting the custodian account. The batch limit per request is 2,000. ## Referenced schemas - [ResourceId](https://www.lusid.com/docs/api/lusid/schemas/ResourceId.txt) - [DeleteCustodianAccountsResponse](https://www.lusid.com/docs/api/lusid/schemas/DeleteCustodianAccountsResponse.txt) [< Transaction Portfolios](https://www.lusid.com/docs/api/lusid/endpoints/transaction-portfolios/llms.txt)