0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Dev環境取得直後にサンプルデータを消し込む方法

Last updated at Posted at 2020-04-05

小ネタですが(Partner)Developer環境に初期投入されているサンプルデータを開発者コンソール Anonymous Windowから消し込む方法です。

List<Opportunity> oppList = [Select Id From Opportunity];
delete oppList;

List<Case> csList = [Select Id From Case];
delete csList;

List<Lead> ldList = [Select Id From Lead];
delete ldList;

List<Campaign> cpList = [Select Id From Campaign];
delete cpList;

List<Entitlement> eList = [Select Id From Entitlement];
delete eList;

List<Account> accList = [Select Id From Account];
delete accList;
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?