Apps Script公式リファレンス: Apps Script Reference |障害・課題追跡: IssueTracker |Google Workspace: Status Dashboard - Summary

2021年2月9日火曜日

スクリプトのプロパティをコードで削除したい


Google Apps Scriptの旧UIでプロパティを削除できなかったのでコードでやってみる。



スクリプトのプロパティの右端にある「削除」をクリック→保存しても削除されなかった。




これで削除できました。

コード.gs
function deleteProperty() {
  var key = "foobar";// 削除したいプロパティのキーを指定
  PropertiesService.getScriptProperties().deleteProperty(key);
}


補足

新UIではそもそもプロパティを表示する画面がみつからない。
これからはコードで読み書きしていくことになりそうだ。

Latest post

Google Apps Scriptの障害時はIssueTrackerを見てみる - Incidents for Apps Script are reported on Issue Tracker

IssueTracker > Apps Script issues https://issuetracker.google.com/savedsearches/566234 Google Apps Scriptの障害時は IssueTracker に課題が上がっていることが...