apps/files_external/lib/Service/DBConfigService.php
/**
	 * Remove a mount from the database
	 *
	 * @param int $mountId
	 */
Remove a mount from the database
@param int $mountId
Remove a mount from the database @param int $mountId
public function removeMount($mountId) {
		$builder = $this->connection->getQueryBuilder();
		$query = $builder->delete('external_mounts')
			->where($builder->expr()->eq('mount_id', $builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)));
		$query->execute();
		$query = $builder->delete('external_applicable')
			->where($builder->expr()->eq('mount_id', $builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)));
		$query->execute();
		$query = $builder->delete('external_config')
			->where($builder->expr()->eq('mount_id', $builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)));
		$query->execute();
		$query = $builder->delete('external_options')
			->where($builder->expr()->eq('mount_id', $builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)));
		$query->execute();
	}
public function removeMount ( $ mountId ) { $ builder = $ this -> connection -> getQueryBuilder ( ) ; $ query = $ builder -> delete ( 'external_mounts' ) -> where ( $ builder -> expr ( ) -> eq ( 'mount_id' , $ builder -> createNamedParameter ( $ mountId , IQueryBuilder :: PARAM_INT ) ) ) ; $ query -> execute ( ) ; $ query = $ builder -> delete ( 'external_applicable' ) -> where ( $ builder -> expr ( ) -> eq ( 'mount_id' , $ builder -> createNamedParameter ( $ mountId , IQueryBuilder :: PARAM_INT ) ) ) ; $ query -> execute ( ) ; $ query = $ builder -> delete ( 'external_config' ) -> where ( $ builder -> expr ( ) -> eq ( 'mount_id' , $ builder -> createNamedParameter ( $ mountId , IQueryBuilder :: PARAM_INT ) ) ) ; $ query -> execute ( ) ; $ query = $ builder -> delete ( 'external_options' ) -> where ( $ builder -> expr ( ) -> eq ( 'mount_id' , $ builder -> createNamedParameter ( $ mountId , IQueryBuilder :: PARAM_INT ) ) ) ; $ query -> execute ( ) ; }
Remove a mount from the database
 @param int $mountId
Remove a mount from the database @param int $mountId