{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2026-09-09T13:48:09Z","object_id":{"id":335,"is_a":["text","documentation","reference","module"],"name":"doc_core","title":"Zotonic Core","uri":"https:\/\/zotonic.com\/id\/335"},"seq":1}],"predicate":{"id":333,"is_a":["meta","predicate"],"name":"in_module","title":{"_type":"trans","tr":{"en":"In module"}},"uri":"https:\/\/zotonic.com\/id\/in_module"}},"references":{"objects":[{"created":"2020-05-30T05:48:19Z","object_id":{"id":1278,"is_a":["text","documentation","reference","model"],"name":"doc_model_model_rsc","title":"rsc","uri":"https:\/\/zotonic.com\/id\/1278"},"seq":1000000},{"created":"2020-05-30T05:48:19Z","object_id":{"id":1521,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_backup","title":"mod_backup","uri":"https:\/\/zotonic.com\/id\/1521"},"seq":1000000}],"predicate":{"id":332,"is_a":["meta","predicate"],"name":"references","title":{"_type":"trans","tr":{"en":"References"}},"uri":"https:\/\/zotonic.com\/id\/references"}},"refers":{"objects":[{"created":"2026-09-09T13:48:09Z","object_id":{"id":1278,"is_a":["text","documentation","reference","model"],"name":"doc_model_model_rsc","title":"rsc","uri":"https:\/\/zotonic.com\/id\/1278"},"seq":1000000},{"created":"2026-09-09T13:48:09Z","object_id":{"id":1521,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_backup","title":"mod_backup","uri":"https:\/\/zotonic.com\/id\/1521"},"seq":1000000}],"predicate":{"id":2409,"is_a":["meta","predicate"],"name":"refers","title":{"_type":"trans","tr":{"en":"Refers"}},"uri":"https:\/\/zotonic.com\/id\/refers"}},"relation":{"objects":[{"created":"2020-05-30T05:48:19Z","object_id":{"id":1277,"is_a":["text","documentation","userguide"],"name":"doc_userguide_datamodel","title":{"_type":"trans","tr":{"en":"Understand pages and connections"}},"uri":"https:\/\/zotonic.com\/id\/1277"},"seq":1000000},{"created":"2020-05-30T05:48:19Z","object_id":{"id":1278,"is_a":["text","documentation","reference","model"],"name":"doc_model_model_rsc","title":"rsc","uri":"https:\/\/zotonic.com\/id\/1278"},"seq":1000000}],"predicate":{"id":303,"is_a":["meta","predicate"],"name":"relation","title":{"_type":"trans","tr":{"nl":"Relatie","en":"Relation"}},"uri":"http:\/\/purl.org\/dc\/terms\/relation"}},"subject":{"objects":[{"created":"2026-09-09T13:48:09Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-09-09T13:48:09Z","object_id":{"id":2564,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_backend_developer","title":"Backend developer","uri":"https:\/\/zotonic.com\/id\/2564"},"seq":2},{"created":"2026-09-09T13:48:09Z","object_id":{"id":2608,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_routing_and_redirects","title":"Routing and redirects","uri":"https:\/\/zotonic.com\/id\/2608"},"seq":3},{"created":"2026-09-09T13:48:09Z","object_id":{"id":2614,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_resource","title":"Resource","uri":"https:\/\/zotonic.com\/id\/2614"},"seq":4},{"created":"2026-09-09T13:48:09Z","object_id":{"id":2625,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_model","title":"Model","uri":"https:\/\/zotonic.com\/id\/2625"},"seq":5},{"created":"2026-09-09T13:48:09Z","object_id":{"id":2643,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_query","title":"Query","uri":"https:\/\/zotonic.com\/id\/2643"},"seq":6}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1286,"is_a":["text","documentation","reference","model"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1286"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_model_model_rsc_gone","page_url":{"en":"https:\/\/zotonic.com\/docs\/1286\/rsc_gone","x-default":"https:\/\/zotonic.com\/docs\/1286\/rsc_gone"},"preview_url":null,"resource":{"version":3382,"pivot_location_lat":null,"title":"rsc_gone","is_authoritative":true,"body":"<p>This model tracks deleted resources (see <a href=\"\/id\/doc_model_model_rsc\" class=\"doc-reference doc-reference-model\"><code>model#rsc<\/code><\/a>). Its primary goal is to be able to\ndetermine if a resource never existed, has been deleted or has been replaced by another resource.<\/p>\n<h2>Information kept<\/h2>\n<p>Only very basic information of the deleted resource is kept in the <code>rsc_gone<\/code> table. It is enough for referring to a new\nlocation, giving correct errors or to determine who deleted a resource.<\/p>\n<p>The saved category, content group, visibility and ownership fields are used for an ACL filter on the deleted-pages overview.<\/p>\n<p>Display labels are kept in <code>props_json<\/code>; complete resource data remains in <a href=\"\/id\/doc_module_mod_backup\" class=\"doc-reference doc-reference-module\"><code>module#mod_backup<\/code><\/a> revisions.\nRestoring a resource removes its tombstone.\n<code>props_json.deletion_reason<\/code> distinguishes manual deletion from automatic dependent cleanup.\nImports respect manual deletion; dependent resources can be imported again if referenced.\nLegacy tombstones without a reason are treated as manual deletions.\nOnly category\/content-group labels are copied. <code>props_json.deleter_id<\/code> identifies the deletion actor;\nperson titles are read from live resources through the normal ACL checks.<\/p>\n<p>The public model paths below expose only routing information. Reading archived metadata requires admin\naccess plus update permission on the saved ACL fields (<code>is_editable\/2<\/code>). ACL modules implement\n<code>view_deleted<\/code> on an <code>acl_rsc<\/code> snapshot and <code>acl_rsc_gone_sql<\/code> for SQL filtering; unsupported modules\nfail closed. Legacy metadata is populated in resumable background batches by <code>mod_backup<\/code>.<\/p>\n<h2>Properties<\/h2>\n<p>Whenever a resource is deleted through <a href=\"\/id\/doc_model_model_rsc\" class=\"doc-reference doc-reference-model\"><code>model#rsc<\/code><\/a>, some information from that resource\nis copied to the <code>rsc_gone<\/code> table.<\/p>\n<p>The following properties are saved:<\/p>\n<table class=\"table\"><thead><tr><th>Property<\/th><th>Description<\/th><th>Example value<\/th><\/tr><\/thead><tbody><tr><td>id<\/td><td>Id of the resource, an integer.<\/td><td><code>42<\/code><\/td><\/tr><tr><td>new_id<\/td><td>If the resource is replaced by another resource then this is the id of that other resource.<\/td><td><code>341<\/code><\/td><\/tr><tr><td>new_uri<\/td><td>If the resource is moved to another place on the web then this is the uri of the new location.<\/td><td><code>&lt;&lt;&quot;&lt;http:\/\/example.com\/hello&gt;&quot;&gt;&gt;<\/code><\/td><\/tr><tr><td>name<\/td><td>The name (if any) of the deleted resource.<\/td><td><code>&lt;&lt;&quot;page_hello&quot;&gt;&gt;<\/code><\/td><\/tr><tr><td>uri<\/td><td>The uri of the authoritative source for the resource.<\/td><td><code>&lt;&lt;&quot;&lt;http:\/\/foo.bar\/hello&gt;&quot;&gt;&gt;<\/code><\/td><\/tr><tr><td>page_path<\/td><td>The page path (if any) of the deleted resource.<\/td><td><code>&lt;&lt;&quot;\/hello&quot;&gt;&gt;<\/code><\/td><\/tr><tr><td>is_authoritative<\/td><td>Whether the resource originated on this site or was imported and maintained on another site. Return a boolean.<\/td><td><code>true<\/code><\/td><\/tr><tr><td>creator_id<\/td><td>The id of the creator of the deleted resource.<\/td><td><code>1<\/code><\/td><\/tr><tr><td>created<\/td><td>The date the deleted resource was created.<\/td><td><code>{{2008,12,10},{15,30,00}}<\/code><\/td><\/tr><tr><td>modifier_id<\/td><td>The id of the user that deleted the resource.<\/td><td><code>2718<\/code><\/td><\/tr><tr><td>modified<\/td><td>The date the resource was deleted.<\/td><td><code>{{2012,12,5},{23,59,59}}<\/code><\/td><\/tr><\/tbody><\/table>\n<h2>Available Model API Paths<\/h2>\n<table class=\"table\"><thead><tr><th>Method<\/th><th>Path pattern<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>get<\/code><\/td><td><code>\/+id\/new_location\/...<\/code><\/td><td>Return category data for +id. Uses <code>get_new_location<\/code>.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/+id\/is_gone\/...<\/code><\/td><td>Return whether gone (<code>is_gone<\/code>).<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/+id\/followup\/...<\/code><\/td><td>Resolve a live local resource, following replacement IDs. Does not authorize access to its properties.<\/td><\/tr><\/tbody><\/table>\n<p><code>\/+name<\/code> marks a variable path segment. A trailing <code>\/...<\/code> means extra path segments are accepted for further lookups.<\/p>","slug":"rsc_gone","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"7ced27d1d77e4c2ee4e5e423398e12fc2e128e0887261b97caa8a01ef70cbeff","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":322,"is_a":["meta","category"],"name":"model","title":"Models","uri":"https:\/\/test.zotonic.com\/id\/322"},"doc_source_path":"apps\/zotonic_core\/src\/models\/m_rsc_gone.erl","publication_start":"2023-01-30T19:23:57Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_core\/src\/models\/m_rsc_gone.erl","pivot_location_lng":null,"doc_source_kind":"model","name":"doc_model_model_rsc_gone","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:16Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_core","publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"28493fb676b2d92727e68d4fba20d89c56cf8ead\n","erlang_module":"m_rsc_gone","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-10-15T20:07:36Z","title_slug":"rsc_gone"},"uri":"https:\/\/zotonic.com\/id\/1286","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1286"}},"status":"ok"}