Scoped GlideRecord - canDelete()

Determines if the Access Control Rules, which include the user's roles, permit deleting records in this table.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Boolean True if the user's roles permit deletions of records in this table.
var att = new GlideRecord('sys_attachment');
gs.info(att.canDelete());

Output: