agave-apps/apps-core/src/main/java/org/iplantc/service/apps/managers/ApplicationManager.java
/**
	 * Deletes a {@link Software} entity from the db. This should not be used, rather
	 * use a soft delete to preserve relationships and provenance.
	 * @param software the software to delete
	 * @param username the user whose requested the delete operation
	 */
Deletes a  Software entity from the db. This should not be used, rather
use a soft delete to preserve relationships and provenance.
@param software the software to delete
@param username the user whose requested the delete operation
Deletes a Software entity from the db . This should not be used rather use a soft delete to preserve relationships and provenance . @param software the software to delete @param username the user whose requested the delete operation
public static void deleteApplication(Software software, String username)
	{	
		try {
			software.setAvailable(false);
			SoftwareDao.persist(software);
			SoftwareEventProcessor eventProcessor = new SoftwareEventProcessor();
			eventProcessor.processSoftwareContentEvent(software, 
					SoftwareEventType.DELETED,
					"App was deleted by user " + username, 
					username);
		} catch (Throwable e) {
			throw new SoftwareResourceException(500,
					"Unexpected error deleting app.", e);
		}
	}
public static void deleteApplication ( Software software , String username ) { try { software . setAvailable ( false ) ; SoftwareDao . persist ( software ) ; SoftwareEventProcessor eventProcessor = new SoftwareEventProcessor ( ) ; eventProcessor . processSoftwareContentEvent ( software , SoftwareEventType . DELETED , "App was deleted by user " + username , username ) ; } catch ( Throwable e ) { throw new SoftwareResourceException ( 500 , "Unexpected error deleting app." , e ) ; } }
Deletes a {@link Software} entity from the db.
Deletes a { @link Software } entity from the db .