How do I soft-delete content from the API?

Knowledge Drop

Last tested: Oct 7, 2019
 

You can soft-delete a look using the update_look() API to change the look's deleted property to true. In the Ruby SDK, this looks like this:

update_look(lookid, {deleted: true})

You can soft-delete a dashboard the same way, using update_dashboard().

Soft-deleted content can be undeleted by updating deleted to false.

Soft-delete means that it the row still resides in the Looker db, but (as of Looker 6.16) is excluded from all_looks and search_looks unless you specifically ask for deleted=true.

This content is subject to limited support.                

Version history
Last update:
‎06-14-2021 06:16 PM
Updated by: