Did some basic destroy and sample codes can be found in the app/models/page.rb file
removed unnecessary details