mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 18:08:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			211 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			211 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /**
 | |
|  * Destroy a specific entry.
 | |
|  */
 | |
| 
 | |
| module.exports = function * () {
 | |
|   try {
 | |
|     const entry = yield strapi.hooks.blueprints.destroy(this);
 | |
|     this.body = entry;
 | |
|   } catch (err) {
 | |
|     this.body = err;
 | |
|   }
 | |
| };
 |