When you need to do some long-running operations such as importing data from an external service, sending e-mails to subscribers, resetting content item layout details, and so on, we can use Sitecore jobs, which are asynchronous operations in the backend that you can monitor in a foreground thread (Job Viewer) of Sitecore Rocks or by creating a custom Sitecore application.
In this recipe, we will create a task of resetting content item layout details and execute it asynchronously by creating a Sitecore job.
This recipe assumes that you already have assigned layout and rendering details to templates as well as some content pages. Now, for reverting layout details changes for the content items, we will reset their values.